# FrameBase.TextPosition Property

> Read only. Gets the frame's character position in the document's text (one-based).

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.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 WPF > Reference > TXTextControl > FrameBase.TextPosition Property
- **539 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/framebase/textposition-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/framebase/textposition-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/framebase/textposition-property/llms-full.txt

---

### Description

Read only. Gets the frame's character position in the document's text (one-based).

### Syntax

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

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

### Examples

The following example adds a callout frame and works with it through the common frame API by using `FrameBase.TextPosition`.

```csharp
TextFrame callout = new(new System.Drawing.Size(3000, 1200)) { Name = "Callout" };
textControl.TextFrames.Add(callout, TextFrameInsertionMode.DisplaceText);
FrameBase frameBase = callout;

Console.WriteLine($"Text Position: {frameBase.TextPosition}");
Console.WriteLine("Frame Base is ready for use.");
```

```vbnet
Dim callout As New TextFrame(New System.Drawing.Size(3000, 1200)) With { .Name = "Callout" }
textControl.TextFrames.Add(callout, TextFrameInsertionMode.DisplaceText)
Dim frameBase As FrameBase = callout

Console.WriteLine($"Text Position: {frameBase.TextPosition}")
Console.WriteLine("Frame Base is ready for use.")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [FrameBase.TextDistances Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/framebase/textdistances-property/llms-full.txt)
- **Next:** [FrameBaseCollection Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/framebasecollection/llms-full.txt)
