TX Text Control .NET for Windows Forms

Alignment Property

Property|Introduced in 13.0
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 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. This property is automatically set to Top, if the control's Dock property is set to to Top or Bottom. It is automatically set to Left, if the control's Dock property is set to to Left or Right.

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 RulerBar.Alignment to configure alignment as part of the ruler bar workflow. The change is then applied to the active document or user interface.

rulerBar.Alignment = RulerBarAlignment.Top;
rulerBar.Update();