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 the numbers of the ruler.

Syntax

public Color ForeColor { get; set; }

Examples

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

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