TXTextControl.RulerBar Class

The RulerBar class represents a Windows Forms tool bar which can be used to show or to set indents, margins and tabs of a Windows Forms TextControl. It is inherited from the System.Windows.Forms.Control class. The following describes only the properties, methods and events defined through the RulerBar class. For a list of properties, methods and events inherited from the System.Windows.Forms.Control class see the .NET Framework reference.

Syntax

[C#]
public class RulerBar : Control
[Visual Basic]
Public Class RulerBar
  Inherits Control

Properties

Property Description
Alignment Gets or sets a value specifying the alignment of the ruler bar in the document.
BorderStyle Gets or sets the border style of the ruler bar.
DisplayColors Gets or sets the colors of the ruler bar.
EnablePageMargins Enables or disables the setting of page margins.
ReadOnly Gets or sets a value determining the ruler bar's read only mode.
ScaleUnit Gets or sets the unit of the ruler bar's scale.

Methods

Method Description
ResetDisplayColors Resets all display colors of a ruler bar to their system dependent default values.

See Also