# TextControl.DisplayColors Property

> Gets or sets the colors of the text control. The property value is an object of the type WPF.TextControlColors.

- **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 > TextControl.DisplayColors Property
- **434 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/displaycolors-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/displaycolors-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/displaycolors-property/llms-full.txt

---

### Description

Gets or sets the colors of the text control. The property value is an object of the type [WPF.TextControlColors](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrolcolors/llms-full.txt).

### Syntax

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

```vbnet
Public Property DisplayColors As TextControlColors
```

### Examples

The following example uses `TextControl.DisplayColors` to configure display colors as part of the text control workflow. The configured value is checked before the workflow continues.

```csharp
textControl.DisplayColors = new TXTextControl.WPF.TextControlColors();
if (textControl.DisplayColors != null)
{
    Console.WriteLine("Text Control: Display Colors is available.");
}
```

```vbnet
textControl.DisplayColors = New TXTextControl.WPF.TextControlColors()
If textControl.DisplayColors IsNot Nothing Then
    Console.WriteLine("Text Control: Display Colors is available.")
End If
```

---

## Nearby

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