# SubTextPart.Start Property

> Gets the index (one-based) of the first character which belongs to the subtextpart.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 23.0
- **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 > SubTextPart.Start Property
- **532 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/subtextpart/start-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/subtextpart/start-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/subtextpart/start-property/llms-full.txt

---

### Description

Gets the index (one-based) of the first character which belongs to the subtextpart.

### Syntax

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

```vbnet
Public ReadOnly Property Start As Integer
```

### Examples

The following example marks the selected customer name as a named document region by using `SubTextPart.Start`.

```csharp
textControl.Text = "Customer: Contoso Ltd.";
textControl.Select(10, 12);
SubTextPart subTextPart = new("CustomerName", 10);
textControl.SubTextParts.Add(subTextPart);

textControl.InputPosition = new InputPosition(subTextPart.Start);
Console.WriteLine("Sub Text Part is ready for use.");
```

```vbnet
textControl.Text = "Customer: Contoso Ltd."
textControl.Select(10, 12)
Dim subTextPart As New SubTextPart("CustomerName", 10)
textControl.SubTextParts.Add(subTextPart)

textControl.InputPosition = New InputPosition(subTextPart.Start)
Console.WriteLine("Sub Text Part is ready for use.")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [SubTextPart.ScrollTo Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/subtextpart/scrollto-method/llms-full.txt)
- **Next:** [SubTextPart.Text Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/subtextpart/text-property/llms-full.txt)
