TX Text Control .NET for Windows Forms

ScaleUnit Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets the unit of the ruler bar's scale.

Syntax

public RulerBarScaleUnit ScaleUnit { get; set; }

Members

ValueDescription
AutoThe ruler is automatically scaled in inch or in millimeter depending on the currently set culture.
CentimeterThe ruler bar is scaled in centimeter without millimeter marks.
InchThe ruler bar is scaled in inch.
MillimeterThe 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 change is then applied to the active document or user interface.

rulerBar.ScaleUnit = RulerBarScaleUnit.Auto;
rulerBar.Update();