InputPosition Constructor
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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);Public Sub New(page As Integer, line As Integer, 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(int)
Creates a new input position from a text position.
public InputPosition(int textPosition);Public Sub New(textPosition As Integer)| Parameter | Description |
|---|---|
| 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);Public Sub New(textPosition As Integer, textFieldPosition As TextFieldPosition)| Parameter | Description |
|---|---|
| textPosition | Specifies a text position. The first position is zero. |
| textFieldPosition | If the |
InputPosition(Point)
Creates a new input position from a geometric location.
public InputPosition(Point location);Public Sub New(location As 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. |
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;Dim inputPosition As New InputPosition(1)
inputPosition.InactiveMarker = TrueSee Also
Selection Class, TextField Class, TextField.DoubledInputPosition Property.