# Section.Length Property

> Gets the number of characters in the section. The section break character is not included.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 14.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.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 Windows Forms > Reference > TXTextControl > Section.Length Property
- **365 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/section/length-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/section/length-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/section/length-property/llms-full.txt

---

### Description

Gets the number of characters in the section. The section break character is not included.

### Syntax

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

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

### Examples

The following example works with the first section of the current document by using `Section.Length`.

```csharp
Section section = textControl.Sections[1];

textControl.Select(section.Start, section.Length);
Console.WriteLine("Section is ready for use.");
```

```vbnet
Dim section As Section = textControl.Sections(1)

textControl.Select(section.Start, section.Length)
Console.WriteLine("Section is ready for use.")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [Section.HeadersAndFooters Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/section/headersandfooters-property/llms-full.txt)
- **Next:** [Section.Number Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/section/number-property/llms-full.txt)
