# PageCollection.Item Property

> Gets a page from the collection. In C# this property is the indexer for the PageCollection 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 > PageCollection.Item Property
- **452 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/pagecollection/item-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/pagecollection/item-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/pagecollection/item-property/llms-full.txt

---

### Description

Gets a page from the collection. In C# this property is the indexer for the PageCollection class.

### Syntax

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

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

### Examples

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

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

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

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

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

### Limitations

Read only.

---

## Nearby

- **Previous:** [PageCollection.GetItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/pagecollection/getitem-method/llms-full.txt)
- **Next:** [PageContent Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/pagecontent/enumeration/llms-full.txt)
