TX Text Control .NET for WPF

DisplayColors 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 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.

Syntax

public RulerBarColors DisplayColors { get; set; }

Examples

The following example uses RulerBar.DisplayColors to configure display colors as part of the ruler bar workflow. The configured value is checked before the workflow continues.

rulerBar.DisplayColors = new TXTextControl.WPF.RulerBarColors();
if (rulerBar.DisplayColors != null)
{
    Console.WriteLine("Ruler Bar: Display Colors is available.");
}