# ServerTextControl.PageUnit Property

> Gets or sets the measure used for page sizes and page margins.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 16.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.PageUnit Property
- **426 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/pageunit-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/pageunit-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/pageunit-property/llms-full.txt

---

### Description

Gets or sets the measure used for page sizes and page margins.

### Syntax

```csharp
public MeasuringUnit PageUnit { get; set; }
```

```vbnet
Public Property PageUnit As MeasuringUnit
```

### Members

| Value | Description |
|---|---|
| Millimeter | The measure for page sizes and page margins is millimeter. |
| CentiInch | The measure for page sizes and page margins is 1/100th inch. |
| StandardWPF | The measure for page sizes and page margins is 1/96th inch. |
| Twips | The measure for page sizes and page margins is Twips (1/1440th inch). This is the internally used TXTextControl measure. |

### Examples

The following example uses `ServerTextControl.PageUnit` to configure page unit as part of the server text control workflow. The configured value is checked before the workflow continues.

```csharp
textControl.PageUnit = MeasuringUnit.CentiInch;
Console.WriteLine($"Page Unit used by Server Text Control: {textControl.PageUnit}");
```

```vbnet
textControl.PageUnit = MeasuringUnit.CentiInch
Console.WriteLine($"Page Unit used by Server Text Control: {textControl.PageUnit}")
```

---

## Nearby

- **Previous:** [ServerTextControl.PageSize Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/pagesize-property/llms-full.txt)
- **Next:** [ServerTextControl.ParagraphFormat Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/paragraphformat-property/llms-full.txt)
