
The WPF.RulerBar class represents a tool bar which can be used to show or to set indents, margins and tabs of a WPF.TextControl. It is inherited from the WPF.TextControlFrameworkElement class which is inherited from the System.Windows.FrameworkElement class. The following describes only the properties, methods and events defined through this class. For a list of inherited properties, methods and events see the .NET Framework reference.
Introduced: 16.0.
[C#]
public class RulerBar : TextControlFrameworkElement
[Visual Basic]
Public Class RulerBar
Inherits TextControlFrameworkElement
| Property | Description | |
| 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. | |
| ScaleUnit | Gets or sets the unit of the ruler bar's scale. |