InsertionMode Property
- Namespace
TXTextControl.ServerVisualisation
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. Core. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.Server. dll
Description
Specifies whether text is inserted or overwrites existing text.
Syntax
public InsertionMode InsertionMode { get; set; }Public Property InsertionMode As InsertionModeMembers
| Value | Description |
|---|---|
| Insert | Text is inserted at the current text input position. |
| Overwrite | Text 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}");Dim formattedSelection As Selection = textViewGenerator.Selection
formattedSelection.Bold = True
textViewGenerator.Selection = formattedSelection
textViewGenerator.InsertionMode = InsertionMode.Insert
Console.WriteLine($"Insertion Mode used by Text View Generator: {textViewGenerator.InsertionMode}")