# ServerTextControl.PageSize Property

> Specifies the width and height of the pages for the current document. The measure depends on the ServerTextControl.PageUnit property. The default measure is 1/100th inch. The property value is an object of the type PageSize. For more information see the description of the PageSize class.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 12.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.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 for WPF > Reference > TXTextControl > ServerTextControl.PageSize Property
- **439 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/pagesize-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/pagesize-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/pagesize-property/llms-full.txt

---

### Description

Specifies the width and height of the pages for the current document. The measure depends on the [ServerTextControl.PageUnit](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/pageunit-property/llms-full.txt) property. The default measure is 1/100th inch. The property value is an object of the type [PageSize](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/pagesize/llms-full.txt). For more information see the description of the PageSize class.

### Syntax

```csharp
public PageSize PageSize { get; set; }
```

```vbnet
Public Property PageSize As PageSize
```

### Examples

The following example uses `ServerTextControl.PageSize` to apply the required page dimensions. The configured value is checked before the workflow continues.

```csharp
textControl.PageSize = new PageSize();
if (textControl.PageSize != null)
{
    Console.WriteLine("Server Text Control: Page Size is available.");
}
```

```vbnet
textControl.PageSize = New PageSize()
If textControl.PageSize IsNot Nothing Then
    Console.WriteLine("Server Text Control: Page Size is available.")
End If
```

---

## Nearby

- **Previous:** [ServerTextControl.Pages Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/pages-property/llms-full.txt)
- **Next:** [ServerTextControl.PageUnit Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/pageunit-property/llms-full.txt)
