TX Text Control .NET Server

ScaleUnit Property

Property|Introduced in 21.0
Namespace
TXTextControl.ServerVisualisation
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Server.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.Server.dll

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 RulerBarViewGenerator.ScaleUnit to configure scale unit as part of the ruler bar view generator workflow. The configured value is checked before the workflow continues.

rulerBarViewGenerator.ScaleUnit = RulerBarScaleUnit.Auto;
Console.WriteLine($"Scale Unit used by Ruler Bar View Generator: {rulerBarViewGenerator.ScaleUnit}");