# StatusBar.DisplayColors Property

> Gets or sets the colors of the status bar. These colors are only used when the BorderStyle property has been set to ColorScheme. The property value is an object of the type WPF.StatusBarColors.

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

---

### Description

Gets or sets the colors of the status bar. These colors are only used when the [BorderStyle](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/statusbar/borderstyle-property/llms-full.txt) property has been set to `ColorScheme`. The property value is an object of the type [WPF.StatusBarColors](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/statusbarcolors/llms-full.txt).

### Syntax

```csharp
public StatusBarColors DisplayColors { get; set; }
```

```vbnet
Public Property DisplayColors As StatusBarColors
```

### Examples

The following example uses `StatusBar.DisplayColors` to configure display colors as part of the status bar workflow. The configured value is checked before the workflow continues.

```csharp
statusBar.DisplayColors = new TXTextControl.WPF.StatusBarColors();
if (statusBar.DisplayColors != null)
{
    Console.WriteLine("Status Bar: Display Colors is available.");
}
```

```vbnet
statusBar.DisplayColors = New TXTextControl.WPF.StatusBarColors()
If statusBar.DisplayColors IsNot Nothing Then
    Console.WriteLine("Status Bar: Display Colors is available.")
End If
```

---

## Nearby

- **Previous:** [StatusBar.ColumnText Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/statusbar/columntext-property/llms-full.txt)
- **Next:** [StatusBar.FontFamily Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/statusbar/fontfamily-property/llms-full.txt)
