RulerBar Class
- Namespace
TXTextControl.WPF
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WPF. SDK
- Assembly
TXTextControl.WPF. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WPF. SDK TXTextControl.from the setup.WPF. dll
- Inherits
- Control
- Text
Control Tool Bar - Ruler
Bar
Description
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 can be connected with a WPF.TextControl through the WPF.TextControl.RulerBar or WPF.TextControl.VerticalRulerBar properties.
Syntax
public class RulerBar : TextControlToolBarPublic Class RulerBar
Inherits TextControlToolBarExamples
The following example creates a Ruler Bar instance and configures its border style setting for a document workflow.
TXTextControl.WPF.RulerBar rulerBar = new();
rulerBar.BorderStyle = RulerBarBorderStyle.Simple3D;Dim rulerBar As New TXTextControl.WPF.RulerBar()
rulerBar.BorderStyle = RulerBarBorderStyle.Simple3DMembers
Constructors
| Constructor | Description |
|---|---|
| RulerBar | Not described in the reference. public RulerBar(); |
Properties
| Property | Description |
|---|---|
| BorderStyle | Gets or sets the border style of the ruler bar. |
| DisplayColors | Gets or sets the colors of the ruler bar. These colors are only used when the BorderStyle property has been set to ColorScheme. The property value is an object of the type WPF.RulerBarColors. |
| EnablePageMargins | Enables or disables the setting of page margins. If the property's value is true, the setting of page margins is enabled. |
| FormulaMode | Gets or sets a value specifying whether the ruler bar shows cell references when the current input position is in a table cell. Depending on the WPF.TextControl.FormulaReferenceStyle property cell references are shown either in the A1 or in the R1C1 notation. This property has no effect when the BorderStyle property has been set to RulerBarBorderStyle.Simple3D or RulerBarBorderStyle.Fixed3D. |
| ScaleUnit | Gets or sets the unit of the ruler bar's scale. |