# PageCollection.GetItem Method

> Gets a particular page 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 > PageCollection.GetItem Method
- **659 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/pagecollection/getitem-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/pagecollection/getitem-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/pagecollection/getitem-method/llms-full.txt

---

### Description

Gets a particular page from the collection.

### Syntax

#### GetItem()

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

```csharp
public Page GetItem();
```

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

#### GetItem(int)

Gets the [Page](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/page/llms-full.txt) at a certain text input position.

```csharp
public Page GetItem(int textPosition);
```

```vbnet
Public Function GetItem(textPosition As Integer) As Page
```

| Parameter | Description |
|---|---|
| textPosition | Specifies a zero-based text input position. |

### Return Value

The return value is null, if a page could not be found. Otherwise, it is an object of the type [Page](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/page/llms-full.txt).

### Examples

The following example works with the laid-out pages of a short report by using `PageCollection.get_Item`.

```csharp
textControl.Text = "Quarterly results\nRevenue increased by 12%.";
PageCollection pageCollection = textControl.GetPages();

Page result = pageCollection.GetItem(1);
result?.Select();
```

```vbnet
textControl.Text = "Quarterly results" & vbCrLf & "Revenue increased by 12%."
Dim pageCollection As PageCollection = textControl.GetPages()

Dim result As Page = pageCollection.GetItem(1)
If result IsNot Nothing Then result.Select()
```

---

## Nearby

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