# InputPosition.TextPosition Property

> Gets the text position of the current text input position. The first text position of a document is zero.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **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.TextPosition Property
- **408 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/inputposition/textposition-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/inputposition/textposition-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/inputposition/textposition-property/llms-full.txt

---

### Description

Gets the text position of the current text input position. The first text position of a document is zero.

### Syntax

```csharp
public int TextPosition { get; }
```

```vbnet
Public ReadOnly Property TextPosition As Integer
```

### Examples

The following example examines or changes the insertion point in a short document by using `InputPosition.TextPosition`.

```csharp
textControl.Text = "Project summary";
InputPosition inputPosition = textControl.InputPosition;

Console.WriteLine($"Text Position: {inputPosition.TextPosition}");
Console.WriteLine("Input Position is ready for use.");
```

```vbnet
textControl.Text = "Project summary"
Dim inputPosition As InputPosition = textControl.InputPosition

Console.WriteLine($"Text Position: {inputPosition.TextPosition}")
Console.WriteLine("Input Position is ready for use.")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [InputPosition.Section Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/inputposition/section-property/llms-full.txt)
- **Next:** [Instruction Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/instruction/llms-full.txt)
