TX Text Control .NET for WPF

InsertionMode Property

Property|Introduced in 16.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.WPF.dll from the private NuGet feed or Text Control Offline Packages

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 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}");