ForeColor Property
- Namespace
TXTextControl.Barcode
- Package
TXTextControl.asTextControl. WinForms. SDK TXBarcode.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. 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 TXBarcodeControl.ForeColor to set the txbarcode control's foreground color. The change is then applied to the active document or user interface.
tXBarcodeControl.ForeColor = System.Drawing.Color.LightSteelBlue;
tXBarcodeControl.Update();tXBarcodeControl.ForeColor = System.Drawing.Color.LightSteelBlue
tXBarcodeControl.Update()