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.

Introduced: 13.0.

Syntax

public RulerBarAlignment Alignment { get; set; }

Members

Member Description
Left The ruler bar is displayed with a vertical ruler.
Top The ruler bar is displayed with a horizontal ruler.

Examples

The following example uses Alignmnent property and sets its value to Top.

TXTextControl.RulerBar  rulerBar = new TXTextControl.RulerBar();

rulerBarr.Alignment   = TXTextControl.RulerBarAlignment.Top;
rulerBar.BorderStyle = TXTextControl.RulerBarBorderStyle.Flat;