TX Text Control .NET Server

Colors Constructor

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

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

Syntax

public Colors();

Examples

The following example creates a Colors instance and configures its desktop color setting for a document workflow.

TXTextControl.ServerVisualisation.TextViewGenerator.Colors colors = new();
colors.DesktopColor = System.Drawing.Color.LightSteelBlue;