PageUnit Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Gets or sets the measure used for page sizes and page margins.
Syntax
public MeasuringUnit PageUnit { get; set; }Public Property PageUnit As MeasuringUnitMembers
| 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 change is then applied to the active document or user interface.
textControl.PageUnit = MeasuringUnit.CentiInch;
textControl.Update();textControl.PageUnit = MeasuringUnit.CentiInch
textControl.Update()