TX Text Control .NET for WPF

DialogUnit Property

Property|Introduced in 28.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.WPF.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets a value indicating the measuring unit used for sizes and distances in dialogboxes.

Syntax

public DialogUnit DialogUnit { get; set; }

Members

ValueDescription
AutoThe measuring unit in dialogboxes depends on the culture set for the current thread.
CentimeterThe measuring unit in dialogboxes is centimeter.
InchThe measuring unit in dialogboxes is inch.
MillimeterThe 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 configured value is checked before the workflow continues.

textControl.DialogUnit = DialogUnit.Auto;
Console.WriteLine($"Dialog Unit used by Text Control: {textControl.DialogUnit}");