# TextControlColors Class

> The WPF.TextControlColors class gets, sets or resets the display colors of a WPF.TextControl control. By default the display colors depend on sytem colors or a default value. With this class all colors can be individually designed.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Class
- **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
- **Inherits:** `TXTextControl.WPF.ColorBase`
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > TextControlColors Class
- **1072 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrolcolors/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrolcolors/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrolcolors/llms-full.txt

---

### Description

The WPF.TextControlColors class gets, sets or resets the display colors of a [WPF.TextControl](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/llms-full.txt) control. By default the display colors depend on sytem colors or a default value. With this class all colors can be individually designed.

### Syntax

```csharp
public sealed class TextControlColors : ColorBase
```

```vbnet
Public NotInheritable Class TextControlColors
    Inherits ColorBase
```

### Examples

The following example creates a Text Control Colors instance for a document-processing operation. The created object is then available to the surrounding document workflow.

```csharp
TXTextControl.WPF.TextControlColors textControlColors = new();
Console.WriteLine("Text Control Colors is ready for use.");
```

```vbnet
Dim textControlColors As New TXTextControl.WPF.TextControlColors()
Console.WriteLine("Text Control Colors is ready for use.")
```

---

## In This Section

- [TextControlColors.ActiveFormFieldColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrolcolors/activeformfieldcolor-property/llms-full.txt): Gets or sets the highlight color of a form field containing the current text input position. To suppress highlighting the active FormField the property value can be set to Colors.Transparent.
- [TextControlColors Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrolcolors/constructor/llms-full.txt): Initializes a new instance of the WPF.TextControlColors class. After creating the object with this constuctor, individual colors can be set. If the Colors object is assigned to the WPF.TextControl.DisplayColors property, non-set colors are reset to their default values.
- [TextControlColors.DarkShadowColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrolcolors/darkshadowcolor-property/llms-full.txt): Gets or sets the display color for the shadow at the right and the bottom edge of the pages.
- [TextControlColors.DesktopColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrolcolors/desktopcolor-property/llms-full.txt): Gets or sets the display color for the area around the pages.
- [TextControlColors.FormFieldColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrolcolors/formfieldcolor-property/llms-full.txt): Gets or sets the highlight color of a form field. This color can be overwritten with the TextField.HighlightColor property. To suppress highlighting a FormField the property value can be set to Colors.Transparent.
- [TextControlColors.HeaderFooterLabelColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrolcolors/headerfooterlabelcolor-property/llms-full.txt): Gets or sets the display color for the label showing which header or footer is activated.
- [TextControlColors.HeaderFooterLineColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrolcolors/headerfooterlinecolor-property/llms-full.txt): Gets or sets the display color for the dividing line between headers and footers and the main text.
- [TextControlColors.LightShadowColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrolcolors/lightshadowcolor-property/llms-full.txt): Gets or sets the display color for the shadow at the left and the top edge of the pages.
- [TextControlColors.PageBackColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrolcolors/pagebackcolor-property/llms-full.txt): Gets or sets the display color for the page background.
- [TextControlColors.TextBackColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrolcolors/textbackcolor-property/llms-full.txt): Gets or sets the background color for the text.
- [TextControlColors.TextColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrolcolors/textcolor-property/llms-full.txt): Gets or sets the color for the text.

---

## Nearby

- **Previous:** [TextControl.ZoomFactor Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/zoomfactor-property/llms-full.txt)
- **Next:** [TextControlColors.ActiveFormFieldColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrolcolors/activeformfieldcolor-property/llms-full.txt)
