# 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 StatusBar.Colors.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 15.1
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Windows.Forms.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > StatusBar.DisplayColors Property
- **347 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/statusbar/displaycolors-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/statusbar/displaycolors-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/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-winforms/reference/txtextcontrol/statusbar/borderstyle-property/llms-full.txt) property has been set to `ColorScheme`. The property value is an object of the type [StatusBar.Colors](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/statusbar-colors/llms-full.txt).

### Syntax

```csharp
public StatusBar.Colors DisplayColors { get; set; }
```

```vbnet
Public Property DisplayColors As StatusBar.Colors
```

### Examples

The following example uses `StatusBar.DisplayColors` to configure display colors as part of the status bar workflow. The change is then applied to the active document or user interface.

```csharp
statusBar.DisplayColors = new StatusBar.Colors();
statusBar.Update();
```

```vbnet
statusBar.DisplayColors = New StatusBar.Colors()
statusBar.Update()
```

---

## Nearby

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