TX Text Control .NET for WPF

ForeColor Property

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

Description

Gets or sets the foreground color for the barcode. The default color is System.Drawing.SystemColors.WindowText.

Syntax

public Color ForeColor { get; set; }

Examples

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

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