TX Text Control .NET for Windows Forms

BackColor 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 background color for the barcode control. The default color is System.Drawing.SystemColors.Window.

Syntax

public Color BackColor { get; set; }

Examples

The following example uses TXBarcodeControl.BackColor to set the txbarcode control's background color. The change is then applied to the active document or user interface.

tXBarcodeControl.BackColor = System.Drawing.Color.LightSteelBlue;
tXBarcodeControl.Update();