TX Text Control .NET Server

InsertionMode Property

Property|Introduced in 34.0
Namespace
TXTextControl.ServerVisualisation
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Server.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.Server.dll

Description

Specifies whether text is inserted or overwrites existing text.

Syntax

public InsertionMode InsertionMode { get; set; }

Members

ValueDescription
InsertText is inserted at the current text input position.
OverwriteText is overwritten at the current text input position.

Examples

The following example applies bold formatting through the text view generator's selection by using TextViewGenerator.InsertionMode.

Selection formattedSelection = textViewGenerator.Selection;
formattedSelection.Bold = true;
textViewGenerator.Selection = formattedSelection;

textViewGenerator.InsertionMode = InsertionMode.Insert;
Console.WriteLine($"Insertion Mode used by Text View Generator: {textViewGenerator.InsertionMode}");