# ButtonBar.DisplayColors Property

> Gets or sets the colors of the button bar. These colors are only used when the BorderStyle and ButtonStyle properties have been set to ColorScheme. The property value is an object of the type ButtonBar.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 > ButtonBar.DisplayColors Property
- **369 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar/displaycolors-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar/displaycolors-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar/displaycolors-property/llms-full.txt

---

### Description

Gets or sets the colors of the button bar. These colors are only used when the [BorderStyle](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar/borderstyle-property/llms-full.txt) and [ButtonStyle](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar/buttonstyle-property/llms-full.txt) properties have been set to `ColorScheme`. The property value is an object of the type [ButtonBar.Colors](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/llms-full.txt).

### Syntax

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

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

### Examples

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

```csharp
buttonBar.DisplayColors = new ButtonBar.Colors();
buttonBar.Update();
```

```vbnet
buttonBar.DisplayColors = New ButtonBar.Colors()
buttonBar.Update()
```

---

## Nearby

- **Previous:** [ButtonBar.Colors.SeparatorColorLight Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar-colors/separatorcolorlight-property/llms-full.txt)
- **Next:** [ButtonBar.ReadOnly Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/buttonbar/readonly-property/llms-full.txt)
