# InputPosition.PageInSection Property

> Gets the page number in the section containing the current text input position. This property returns the page number only if the TextControl.ViewMode property has been set to ViewMode.PageView.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 14.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.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 Server > Reference > TXTextControl > InputPosition.PageInSection Property
- **464 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/inputposition/pageinsection-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/inputposition/pageinsection-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/inputposition/pageinsection-property/llms-full.txt

---

### Description

Gets the page number in the section containing the current text input position. This property returns the page number only if the [TextControl.ViewMode](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/viewmode-property/llms-full.txt) property has been set to `ViewMode.PageView`.

### Syntax

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

```vbnet
Public ReadOnly Property PageInSection As Integer
```

### Examples

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

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

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

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

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

### Limitations

Read only.

---

## Nearby

- **Previous:** [InputPosition.Page Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/inputposition/page-property/llms-full.txt)
- **Next:** [InputPosition.ScrollPosition Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/inputposition/scrollposition-enumeration/llms-full.txt)
