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 text control. The property value is an object of the type WPF.TextControlColors.

Syntax

public TextControlColors DisplayColors { get; set; }

Examples

The following example uses TextControl.DisplayColors to configure display colors as part of the text control workflow. The configured value is checked before the workflow continues.

textControl.DisplayColors = new TXTextControl.WPF.TextControlColors();
if (textControl.DisplayColors != null)
{
    Console.WriteLine("Text Control: Display Colors is available.");
}