# SectionCollection.Item Property

> Gets a section from the collection. In C# this property is the indexer for the SectionCollection class.

- **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 > SectionCollection.Item Property
- **451 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/sectioncollection/item-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/sectioncollection/item-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/sectioncollection/item-property/llms-full.txt

---

### Description

Gets a section from the collection. In C# this property is the indexer for the SectionCollection class.

### Syntax

```csharp
public Section this[int number] { get; }
```

```vbnet
Default Public ReadOnly Property Item(number As Integer) As Section
```

### Examples

The following example works with sections in the current document by using `SectionCollection.Item`.

```csharp
SectionCollection sectionCollection = textControl.Sections;
sectionCollection.Add(SectionBreakKind.BeginAtNewPage, -1);

Console.WriteLine($"Item: {sectionCollection[10]}");
Console.WriteLine("Section Collection is ready for use.");
```

```vbnet
Dim sectionCollection As SectionCollection = textControl.Sections
sectionCollection.Add(SectionBreakKind.BeginAtNewPage, -1)

Console.WriteLine($"Item: {sectionCollection.Item(10)}")
Console.WriteLine("Section Collection is ready for use.")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [SectionCollection.GetItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/sectioncollection/getitem-method/llms-full.txt)
- **Next:** [SectionFormat Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/sectionformat/llms-full.txt)
