TX Text Control .NET Documentation

InputPosition Constructor

Description:Initializes a new instance of the InputPosition class. The first constructor creates a new input position from a page, line and column number, the second and third from a text position and the fourth from a geometric location.

Syntax:
[C#] public InputPosition(int page, int line, int column); public InputPosition(int textPosition); public InputPosition(int textPosition, TextFieldPosition textFieldPosition); public InputPosition(Point location);
[Visual Basic] Public Sub New(ByVal page As Integer, ByVal line As Integer, ByVal column As Integer) Public Sub New(ByVal textPosition As Integer) Public Sub New(ByVal textPosition As Integer, ByVal textFieldPosition As TextFieldPosition) Public Sub New(ByVal location As Point)
ParameterDescription
pageSpecifies a page number.

lineSpecifies a line number.

columnSpecifies a column number. The first column is zero.

textPositionSpecifies a text position. The first position is zero.

textFieldPositionIf the textPosition parameter is a position at the beginning or at the end of a TextField with a doubled input position, this parameter can be used to define whether the position is inside or outside the field. It can be one of the following TextFieldPosition values:

ValueMeaning
InsideTextFieldThe specified position is inside the field.

OutsideTextFieldThe specified position is outside the field.

InsideNextTextFieldThe specified position is inside the next field. This value is only possible, if there are two following text fields without any character bewteen the fields. In this case InsideTextField is in the first field, OutsideTextField is between the fields and InsideNextTextField is in the second field.


locationSpecifies a geometric location. The point must be specified in pixels with an origin at the top left corner of the control.

See also:Text Selections and Character Input, Graphical Overview, Selection Class, TextField Class, TextField.DoubledInputPosition Property.