ForeColor Property
- Namespace
TXTextControl.WPF. Barcode
- Package
TXTextControl.asTextControl. WPF. SDK TXBarcode.from the private NuGet feed or Text Control Offline PackagesWPF. dll
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; }Public Property ForeColor As Color?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.");
}tXBarcodeControl.ForeColor = System.Windows.Media.Colors.CornflowerBlue
If tXBarcodeControl.ForeColor IsNot Nothing Then
Console.WriteLine("TXBarcode Control: Fore Color is available.")
End If