PageUnit Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. 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 ServerTextControl.PageUnit to configure page unit as part of the server text control workflow. The configured value is checked before the workflow continues.
textControl.PageUnit = MeasuringUnit.CentiInch;
Console.WriteLine($"Page Unit used by Server Text Control: {textControl.PageUnit}");textControl.PageUnit = MeasuringUnit.CentiInch
Console.WriteLine($"Page Unit used by Server Text Control: {textControl.PageUnit}")