TXTextControl.InputPosition Constructor

Creates a new instance of the InputPosition class.

InputPosition(Int32, Int32, Int32)

Creates a new input position from a page, line and column number.

[C#]
public InputPosition(int page, int line, int column);
[Visual Basic]
Public Sub New(ByVal page As Integer, ByVal line As Integer, ByVal column As Integer)
Parameter Description
page

Specifies a page number.

line

Specifies a line number.

column

Specifies a column number. The first column is zero.

InputPosition(Int32)

Creates a new input position from a text position.

[C#]
public InputPosition(int textPosition);
[Visual Basic]
Public Sub New(ByVal textPosition As Integer)
Parameter Description
textPosition

Specifies a text position. The first position is zero.

InputPosition(Int32, TextFieldPosition)

Creates a new input position from a text position with a special handling at the beginning and the end of a TextField.

[C#]
public InputPosition(int textPosition, TextFieldPosition textFieldPosition);
[Visual Basic]
Public Sub New(ByVal textPosition As Integer, ByVal textFieldPosition As TextFieldPosition)
Parameter Description
textPosition

Specifies a text position. The first position is zero.

textFieldPosition

If 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 values of the TextFieldPosition enumeration.

InputPosition(Point)

Creates a new input position from a geometric location.

[C#]
public InputPosition(System.Drawing.Point location);
[Visual Basic]
Public Sub New(ByVal location As System.Drawing.Point)
Parameter Description
location

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

See Also