# Page.Length Property

> Gets the number of characters of the page, including the page break character at the end of the page.

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

---

### Description

Gets the number of characters of the page, including the page break character at the end of the page.

### Syntax

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

```vbnet
Public ReadOnly Property Length As Integer
```

### Examples

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

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

textControl.Select(page.Start, page.Length);
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)

textControl.Select(page.Start, page.Length)
Console.WriteLine("Page is ready for use.")

page.Select()
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [Page.Header Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/page/header-property/llms-full.txt)
- **Next:** [Page.Number Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/page/number-property/llms-full.txt)
