# Page.Section Property

> Gets the number, one-based, of the section the page belongs to. If there are more than one section on the page, the number of the first section is returned. The first section determines the page's size and orientation.

- **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 > Page.Section Property
- **470 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/page/section-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/page/section-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/page/section-property/llms-full.txt

---

### Description

Gets the number, one-based, of the section the page belongs to. If there are more than one section on the page, the number of the first section is returned. The first section determines the page's size and orientation.

### Syntax

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

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

### Examples

The following example works with the first laid-out page of a short report by using `Page.Section`.

```csharp
textControl.Text = "Quarterly results\nRevenue increased by 12%.";
Page page = textControl.GetPages()[1];

Console.WriteLine($"Section: {page.Section}");
Console.WriteLine("Page is ready for use.");

page.Select();
```

```vbnet
textControl.Text = "Quarterly results" & vbCrLf & "Revenue increased by 12%."
Dim page As Page = textControl.GetPages().Item(1)

Console.WriteLine($"Section: {page.Section}")
Console.WriteLine("Page is ready for use.")

page.Select()
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [Page.NumberInSection Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/page/numberinsection-property/llms-full.txt)
- **Next:** [Page.Select Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/page/select-method/llms-full.txt)
