TX Text Control .NET for Windows Forms

ForeColor 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 color used for text and the button images.

Syntax

public Color ForeColor { get; set; }

Examples

The following example uses Colors.ForeColor to set the colors's foreground color. The configured value is checked before the workflow continues.

colors.ForeColor = System.Drawing.Color.LightSteelBlue;
Console.WriteLine($"Fore Color used by Colors: {colors.ForeColor}");