# TXBarcodeControl.BackColor Property

> Gets or sets the background color for the barcode control. The default value is null and represents the color SystemColors.WindowColor.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 29.0
- **Namespace:** `TXTextControl.WPF.Barcode`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXBarcode.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXBarcode.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF.Barcode > TXBarcodeControl.BackColor Property
- **418 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf-barcode/txbarcodecontrol/backcolor-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf-barcode/txbarcodecontrol/backcolor-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf-barcode/txbarcodecontrol/backcolor-property/llms-full.txt

---

### Description

Gets or sets the background color for the barcode control. The default value is null and represents the color `SystemColors.WindowColor`.

### Syntax

```csharp
public Color? BackColor { get; set; }
```

```vbnet
Public Property BackColor As Color?
```

### Examples

The following example uses `TXBarcodeControl.BackColor` to set the txbarcode control's background color. The configured value is checked before the workflow continues.

```csharp
tXBarcodeControl.BackColor = System.Windows.Media.Colors.CornflowerBlue;
if (tXBarcodeControl.BackColor != null)
{
    Console.WriteLine("TXBarcode Control: Back Color is available.");
}
```

```vbnet
tXBarcodeControl.BackColor = System.Windows.Media.Colors.CornflowerBlue
If tXBarcodeControl.BackColor IsNot Nothing Then
    Console.WriteLine("TXBarcode Control: Back Color is available.")
End If
```

---

## Nearby

- **Previous:** [TXBarcodeControl.Angle Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf-barcode/txbarcodecontrol/angle-property/llms-full.txt)
- **Next:** [TXBarcodeControl.BarcodeType Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf-barcode/txbarcodecontrol/barcodetype-property/llms-full.txt)
