TX Text Control .NET for Windows Forms

DisplayColors Property

Property|Introduced in 15.1
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.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 RulerBar.Colors.

Syntax

public RulerBar.Colors DisplayColors { get; set; }

Examples

The following example uses RulerBar.DisplayColors to configure display colors as part of the ruler bar workflow. The change is then applied to the active document or user interface.

rulerBar.DisplayColors = new RulerBar.Colors();
rulerBar.Update();