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 text control. These colors are only used when the BackgroundStyle property has been set to ColorScheme. The property value is an object of the type TextControl.Colors.

Syntax

public TextControl.Colors DisplayColors { get; set; }

Examples

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

textControl.DisplayColors = new TextControl.Colors();
textControl.Update();