# ServerTextControl.GetPages Property

> Gets a collection of all pages in the document. The property's value is an object of the type PageCollection.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 14.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Server.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.Server.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Server.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl > ServerTextControl.GetPages Property
- **302 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/getpages-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/getpages-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/getpages-property/llms-full.txt

---

### Description

Gets a collection of all pages in the document. The property's value is an object of the type [PageCollection](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/pagecollection/llms-full.txt).

### Syntax

```csharp
public PageCollection GetPages();
```

```vbnet
Public Function GetPages() As PageCollection
```

### Examples

The following example includes the pages value in application diagnostics. The created object is then available to the surrounding document workflow.

```csharp
Console.WriteLine($"Pages: {textControl.Pages}");
Console.WriteLine("Server Text Control is ready for use.");
```

```vbnet
Console.WriteLine($"Pages: {textControl.Pages}")
Console.WriteLine("Server Text Control is ready for use.")
```

---

## Nearby

- **Previous:** [ServerTextControl.Frames Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/frames-property/llms-full.txt)
- **Next:** [ServerTextControl.GetSupportedFonts Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/getsupportedfonts-method/llms-full.txt)
