# TextControl.DisplayColors Property

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

---

### Description

Gets or sets the colors of the text control. These colors are only used when the [BackgroundStyle](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/backgroundstyle-property/llms-full.txt) property has been set to `ColorScheme`. The property value is an object of the type [TextControl.Colors](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol-colors/llms-full.txt).

### Syntax

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

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

### Examples

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

```csharp
textControl.DisplayColors = new TextControl.Colors();
textControl.Update();
```

```vbnet
textControl.DisplayColors = New TextControl.Colors()
textControl.Update()
```

---

## Nearby

- **Previous:** [TextControl.DialogUnit Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/dialogunit-property/llms-full.txt)
- **Next:** [TextControl.DocumentLinkClicked Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/documentlinkclicked-event/llms-full.txt)
