TX Text Control .NET Server

DisplayColors Property

Property|Introduced in 21.0
Namespace
TXTextControl.ServerVisualisation
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Server.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.Server.dll

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 ServerVisualization.RulerBarViewGenerator.Colors.

Syntax

public RulerBarViewGenerator.Colors DisplayColors { get; set; }

Examples

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

rulerBarViewGenerator.DisplayColors = new TXTextControl.ServerVisualisation.RulerBarViewGenerator.Colors();
if (rulerBarViewGenerator.DisplayColors != null)
{
    Console.WriteLine("Ruler Bar View Generator: Display Colors is available.");
}