Gets or sets the unit of the ruler bar's scale.
public RulerBarScaleUnit ScaleUnit { get; set; }
Member | 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. |
The following example uses the Scale
TXTextControl.RulerBar rulerBar = new TXTextControl.RulerBar();
rulerBar.Alignment = TXTextControl.RulerBarAlignment.Top;
rulerBar.BorderStyle = TXTextControl.RulerBarBorderStyle.Flat;
rulerBar.FormulaMode = TXTextControl.RulerBarFormulaMode.Auto;
rulerBar.DisplayColors = TXTextControl.RulerBar.Colors.White;
rulerBar.ScaleUnit = TXTextControl.RulerBarScaleUnit.Auto;