# SectionCollection.GetItem Method

> Gets the Section with the current text input position from the collection.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Method
- **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.GetItem Method
- **407 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/sectioncollection/getitem-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/sectioncollection/getitem-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/sectioncollection/getitem-method/llms-full.txt

---

### Description

Gets the [Section](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/section/llms-full.txt) with the current text input position from the collection.

### Syntax

```csharp
public Section GetItem();
```

```vbnet
Public Function GetItem() As Section
```

### Examples

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

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

Section result = sectionCollection.GetItem();
result?.Select();
```

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

Dim result As Section = sectionCollection.GetItem()
If result IsNot Nothing Then result.Select()
```

---

## Nearby

- **Previous:** [SectionCollection.GetEnumerator Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/sectioncollection/getenumerator-method/llms-full.txt)
- **Next:** [SectionCollection.Item Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/sectioncollection/item-property/llms-full.txt)
