TX Text Control .NET for Windows Forms

ForeColor Property

Property|Introduced in 29.0
Namespace
TXTextControl.Barcode
Package
TXTextControl.TextControl.WinForms.SDK as TXBarcode.Windows.Forms.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 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();