TX Text Control .NET for WPF

TextControlColors Constructor

Constructor|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

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

Syntax

public TextControlColors();

Examples

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

TXTextControl.WPF.TextControlColors textControlColors = new();
Console.WriteLine("Text Control Colors is ready for use.");