TX Text Control .NET for WPF

Colors Constructor

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

Description

Initializes a new instance of the WPF.RulerBarColors class. After creating the object with this constuctor, individual colors can be set. If the Colors object is assigned to the WPF.RulerBar.DisplayColors property, non-set colors are reset to their system dependent default values.

Syntax

public RulerBarColors();

Examples

The following example creates a Ruler Bar Colors instance for a document-processing operation. The created object is then available to the surrounding document workflow.

TXTextControl.WPF.RulerBarColors rulerBarColors = new();
Console.WriteLine("Ruler Bar Colors is ready for use.");