# TextControl.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.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > TextControl.PageUnit Property
- **421 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/pageunit-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/pageunit-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/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 `TextControl.PageUnit` to configure page unit as part of the text control workflow. The configured value is checked before the workflow continues.

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

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

---

## Nearby

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