Alignment Property
- Namespace
TXTextControl.ServerVisualisation
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. Core. dll
- Also in
TXTextControl.asTextControl. ASP. SDK 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; }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 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}");rulerBarViewGenerator.Alignment = RulerBarAlignment.Top
Console.WriteLine($"Alignment used by Ruler Bar View Generator: {rulerBarViewGenerator.Alignment}")