TX Text Control .NET Server

Alignment 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 a value specifying the alignment of the ruler bar in the document. Depending on the alignment either a horizontal or a vertical ruler is displayed.

Syntax

public RulerBarAlignment Alignment { get; set; }

Members

ValueDescription
LeftThe ruler bar is displayed with a vertical ruler.
TopThe ruler bar is displayed with a horizontal ruler.

Examples

The following example uses RulerBarViewGenerator.Alignment to configure alignment as part of the ruler bar view generator workflow. The configured value is checked before the workflow continues.

rulerBarViewGenerator.Alignment = RulerBarAlignment.Top;
Console.WriteLine($"Alignment used by Ruler Bar View Generator: {rulerBarViewGenerator.Alignment}");