TX Text Control .NET for WPF

InputPosition Constructor

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

Description

Creates a new instance of the InputPosition class.

Syntax

InputPosition(int, int, int)

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

public InputPosition(int page, int line, int column);
ParameterDescription
page

Specifies a page number.

line

Specifies a line number.

column

Specifies a column number. The first column is zero.

InputPosition(int)

Creates a new input position from a text position.

public InputPosition(int textPosition);
ParameterDescription
textPosition

Specifies a text position. The first position is zero.

InputPosition(int, TextFieldPosition)

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

public InputPosition(int textPosition, TextFieldPosition textFieldPosition);
ParameterDescription
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.

public InputPosition(Point location);
ParameterDescription
location

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

Examples

The following example creates an Input Position instance and configures its inactive marker setting for a document workflow.

InputPosition inputPosition = new(1);
inputPosition.InactiveMarker = true;

See Also

Selection Class, TextField Class, TextField.DoubledInputPosition Property.