TX Text Control .NET for WPF

RulerColor Property

Property|Introduced in 16.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.WPF.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets the color of the ruler.

Syntax

public Color RulerColor { get; set; }

Examples

The following example uses RulerBarColors.RulerColor to configure ruler color as part of the ruler bar colors workflow. The configured value is checked before the workflow continues.

rulerBarColors.RulerColor = System.Windows.Media.Colors.CornflowerBlue;
Console.WriteLine($"Ruler Color used by Ruler Bar Colors: {rulerBarColors.RulerColor}");