The Ruler
public class RulerBar : ControlPublic Class RulerBar
Inherits ControlThe following example shows a Ruler
TXTextControl.RulerBar rulerBar = new TXTextControl.RulerBar();
rulerBar.Alignment = TXTextControl.RulerBarAlignment.Top;
rulerBar.BorderStyle = TXTextControl.RulerBarBorderStyle.Flat;
rulerBar.FormulaMode = TXTextControl.RulerBarFormulaMode.Auto;
rulerBar.DisplayColors = TXTextControl.RulerBar.Colors.White;Dim rulerBar As TXTextControl.RulerBar = New TXTextControl.RulerBar()
rulerBar.Alignment = TXTextControl.RulerBarAlignment.Top
rulerBar.BorderStyle = TXTextControl.RulerBarBorderStyle.Flat
rulerBar.FormulaMode = TXTextControl.RulerBarFormulaMode.Auto
rulerBar.DisplayColors = TXTextControl.RulerBar.Colors.White
End Sub| Method | Description |
|---|---|
| Reset |
Resets all display colors of a ruler bar to their system dependent default values. |
| Property | Description |
|---|---|
| Alignment | Gets or sets a value specifying the alignment of the ruler bar in the document. |
| Border |
Gets or sets the border style of the ruler bar. |
| Display |
Gets or sets the colors of the ruler bar. |
| Enable |
Enables or disables the setting of page margins. |
| Formula |
Gets or sets a value specifying whether the ruler bar shows cell references when the current input position is in a table cell. |
| Read |
Gets or sets a value determining the ruler bar's read only mode. |
| Scale |
Gets or sets the unit of the ruler bar's scale. |
Learn more about the TXText