Alignment Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. 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. 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; }Public Property Alignment As RulerBarAlignmentMembers
| Value | 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 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();rulerBar.Alignment = RulerBarAlignment.Top
rulerBar.Update()