# InputPosition Constructor

> Creates a new instance of the InputPosition class.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Constructor
- **Introduced:** 10.1
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > InputPosition Constructor
- **1189 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/inputposition/constructor/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/inputposition/constructor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/inputposition/constructor/llms-full.txt

---

### 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.

```csharp
public InputPosition(int page, int line, int column);
```

```vbnet
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.

```csharp
public InputPosition(int textPosition);
```

```vbnet
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](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textfield/llms-full.txt).

```csharp
public InputPosition(int textPosition, TextFieldPosition textFieldPosition);
```

```vbnet
Public Sub New(textPosition As Integer, 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](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textfield/llms-full.txt) 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](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textfieldposition/enumeration/llms-full.txt) enumeration. |

#### InputPosition(Point)

Creates a new input position from a geometric location.

```csharp
public InputPosition(Point location);
```

```vbnet
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.

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

```vbnet
Dim inputPosition As New InputPosition(1)
inputPosition.InactiveMarker = True
```

### See Also

[Selection](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/selection/llms-full.txt) Class, [TextField](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textfield/llms-full.txt) Class, [TextField.DoubledInputPosition](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textfield/doubledinputposition-property/llms-full.txt) Property.

---

## Nearby

- **Previous:** [InputPosition.Column Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/inputposition/column-property/llms-full.txt)
- **Next:** [InputPosition.InactiveMarker Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/inputposition/inactivemarker-property/llms-full.txt)
