# InputPosition.Section Property

> Gets the section number of the current text input position. The first section in the document has the number 1.

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

---

### Description

Gets the section number of the current text input position. The first section in the document has the number 1.

### Syntax

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

```vbnet
Public ReadOnly Property Section As Integer
```

### Examples

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

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

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

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

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

### Limitations

Read only.

---

## Nearby

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