# Ribbon.DisplayColors Property

> Gets or sets the colors of the ribbon. The property value is an object of the type Windows.Forms.Ribbon.Ribbon.Colors.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 24.0
- **Namespace:** `TXTextControl.Windows.Forms.Ribbon`
- **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.Windows.Forms.Ribbon > Ribbon.DisplayColors Property
- **351 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbon/displaycolors-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbon/displaycolors-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbon/displaycolors-property/llms-full.txt

---

### Description

Gets or sets the colors of the ribbon. The property value is an object of the type [Windows.Forms.Ribbon.Ribbon.Colors](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbon-colors/llms-full.txt).

### Syntax

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

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

### Examples

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

```csharp
ribbon.DisplayColors = new TXTextControl.Windows.Forms.Ribbon.Ribbon.Colors();
ribbon.Update();
```

```vbnet
ribbon.DisplayColors = New TXTextControl.Windows.Forms.Ribbon.Ribbon.Colors()
ribbon.Update()
```

---

## Nearby

- **Previous:** [Ribbon.ContextualTabGroups Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbon/contextualtabgroups-property/llms-full.txt)
- **Next:** [Ribbon.HasApplicationMenu Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbon/hasapplicationmenu-property/llms-full.txt)
