TX Text Control .NET for WPF

RulerBar Class

Class|Introduced in 16.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.WPF.dll
Install
dotnet add package TXTextControl.TextControl.WPF.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.WPF.dll from the setup.
Inherits
  1. Control
  2. TextControlToolBar
  3. RulerBar

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 : TextControlToolBar

Examples

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;

Members

Constructors

ConstructorDescription
RulerBarNot described in the reference. public RulerBar();

Properties

PropertyDescription
BorderStyleGets or sets the border style of the ruler bar.
DisplayColorsGets 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.
EnablePageMarginsEnables or disables the setting of page margins. If the property's value is true, the setting of page margins is enabled.
FormulaModeGets 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.
ScaleUnitGets or sets the unit of the ruler bar's scale.