TX Text Control .NET for WPF

ForeColor Property

Property|Introduced in 29.0
Namespace
TXTextControl.WPF.Barcode
Package
TXTextControl.TextControl.WPF.SDK as TXBarcode.WPF.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets the foreground color for the barcode. The default value is null and represents the color SystemColors.WindowTextColor.

Syntax

public Color? ForeColor { get; set; }

Examples

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

tXBarcodeControl.ForeColor = System.Windows.Media.Colors.CornflowerBlue;
if (tXBarcodeControl.ForeColor != null)
{
    Console.WriteLine("TXBarcode Control: Fore Color is available.");
}