TX Text Control .NET for Windows Forms

InputPosition Property

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

Description

Gets or sets the current text input position. The property's value is an object of the type InputPosition.

Syntax

public InputPosition InputPosition { get; set; }

Examples

The following example moves the insertion point to the end of the document before appending an approval line.

textControl.Text = "Quarterly results";
textControl.InputPosition = new InputPosition(textControl.Text.Length);
textControl.Selection.Text = "\nApproved";

Limitations

Runtime only.