DialogUnit 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 a value indicating the measuring unit used for sizes and distances in dialogboxes.
Syntax
public DialogUnit DialogUnit { get; set; }Public Property DialogUnit As DialogUnitMembers
| Value | Description |
|---|---|
| Auto | The measuring unit in dialogboxes depends on the culture set for the current thread. |
| Centimeter | The measuring unit in dialogboxes is centimeter. |
| Inch | The measuring unit in dialogboxes is inch. |
| Millimeter | The measuring unit in dialogboxes is millimeter. |
Examples
The following example uses TextControl.DialogUnit to configure dialog unit as part of the text control workflow. The change is then applied to the active document or user interface.
textControl.DialogUnit = DialogUnit.Auto;
textControl.Update();textControl.DialogUnit = DialogUnit.Auto
textControl.Update()