TX Text Control .NET for Windows Forms Documentation

InputPosition Class

An instance of the InputPosition class represents the current text input position of a TXTextControl document.

Introduced: 10.1.

Syntax

[C#] public class InputPosition
[Visual Basic] Public Class InputPosition

Constructors

ConstructorDescription
InputPositionInitializes a new instance of the InputPosition class.

Properties

PropertyDescription
ColumnGets the column number of the current text input position.
LineGets the line number of the current text input position.
LocationGets the geometric location of the current text input position.
PageGets the page number of the current text input position.
PageInSectionGets the page number in the section containing the current text input position.
SectionGets the section number of the current text input position.
TextPositionGets the text position of the current text input position.

Example

The following example shows how to add a TextField to the document and how to set the input position right after the field.

[C#] textControl1.Selection.Text = "Name: "; TXTextControl.TextField field = new TXTextControl.TextField("%name%"); field.DoubledInputPosition = true; field.ShowActivated = true; textControl1.TextFields.Add(field); textControl1.InputPosition = new TXTextControl.InputPosition( field.Start + field.Length - 1, TXTextControl.TextFieldPosition.OutsideTextField);
[Visual Basic] TextControl1.Selection.Text = "Name: " Dim field As TXTextControl.TextField = New TXTextControl.TextField("%name%") field.DoubledInputPosition = True field.ShowActivated = True TextControl1.TextFields.Add(field) TextControl1.InputPosition = New TXTextControl.InputPosition( _ field.Start + field.Length - 1, _ TXTextControl.TextFieldPosition.OutsideTextField)

See Also

 
 
 

Products

Support

Downloads

Corporate

Buy Now