InsertionMode Property
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. 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 uses TextControl.InsertionMode to configure insertion mode as part of the text control workflow. The configured value is checked before the workflow continues.
textControl.InsertionMode = InsertionMode.Insert;
Console.WriteLine($"Insertion Mode used by Text Control: {textControl.InsertionMode}");textControl.InsertionMode = InsertionMode.Insert
Console.WriteLine($"Insertion Mode used by Text Control: {textControl.InsertionMode}")