TX Text Control .NET for WPF

ForeColor 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 color used for text and numbers.

Syntax

public Color ForeColor { get; set; }

Examples

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

statusBarColors.ForeColor = System.Windows.Media.Colors.CornflowerBlue;
Console.WriteLine($"Fore Color used by Status Bar Colors: {statusBarColors.ForeColor}");