ForeColor Property
- Namespace
TXTextControl.Barcode
- Package
TXTextControl.asTextControl. Core. SDK TXBarcode.from the private NuGet feed or Text Control Offline Packagesdll
- Also in
TXTextControl.asTextControl. ASP. SDK TXBarcode.dll
Description
Gets or sets the foreground color for the barcode. The default color is System.Drawing.SystemColors.WindowText.
Syntax
public Color ForeColor { get; set; }Public Property ForeColor As ColorExamples
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}");tXBarcodeCore.ForeColor = System.Drawing.Color.LightSteelBlue
Console.WriteLine($"Fore Color used by TXBarcode Core: {tXBarcodeCore.ForeColor}")