ScaleUnit Property
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Gets or sets the unit of the ruler bar's scale.
Syntax
public RulerBarScaleUnit ScaleUnit { get; set; }Public Property ScaleUnit As RulerBarScaleUnitMembers
| Value | Description |
|---|---|
| Auto | The ruler is automatically scaled in inch or in millimeter depending on the currently set culture. |
| Centimeter | The ruler bar is scaled in centimeter without millimeter marks. |
| Inch | The ruler bar is scaled in inch. |
| Millimeter | The ruler bar is scaled in centimeter including millimeter marks. |
Examples
The following example uses RulerBar.ScaleUnit to configure scale unit as part of the ruler bar workflow. The configured value is checked before the workflow continues.
rulerBar.ScaleUnit = RulerBarScaleUnit.Auto;
Console.WriteLine($"Scale Unit used by Ruler Bar: {rulerBar.ScaleUnit}");rulerBar.ScaleUnit = RulerBarScaleUnit.Auto
Console.WriteLine($"Scale Unit used by Ruler Bar: {rulerBar.ScaleUnit}")