TX Text Control .NET for Windows Forms

Colors Constructor

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

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

Syntax

public Colors();

Examples

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

RulerBar.Colors colors = new();
colors.ForeColor = System.Drawing.Color.LightSteelBlue;