# TextControl.Colors Class

> The TextControl.Colors class gets, sets or resets the display colors of a Windows Forms 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 Windows Forms
- **Section:** Reference
- **Kind:** Class
- **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
- **Inherits:** `TXTextControl.ColorBase`
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > TextControl.Colors Class
- **1322 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol-colors/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol-colors/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol-colors/llms-full.txt

---

### Description

The TextControl.Colors class gets, sets or resets the display colors of a Windows Forms [TextControl](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/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 TextControl.Colors : ColorBase
```

```vbnet
Public NotInheritable Class TextControl.Colors
    Inherits ColorBase
```

### Examples

The following example creates a Colors instance and configures its desktop color setting for a document workflow.

```csharp
TextControl.Colors colors = new();
colors.DesktopColor = System.Drawing.Color.LightSteelBlue;
```

```vbnet
Dim colors As New TextControl.Colors()
colors.DesktopColor = System.Drawing.Color.LightSteelBlue
```

---

## In This Section

- [TextControl.Colors.ActiveFormFieldColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol-colors/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 Color.Transparent.
- [TextControl.Colors Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol-colors/constructor/llms-full.txt): Initializes a new instance of the TextControl.Colors class. After creating the object with this constuctor, individual colors can be set. If the Colors object is assigned to the TextControl.DisplayColors property, non-set colors are reset to their default values.
- [TextControl.Colors.DarkShadowColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol-colors/darkshadowcolor-property/llms-full.txt): Gets or sets the display color for the shadow at the right and the bottom edge of the pages.
- [TextControl.Colors.DesktopColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol-colors/desktopcolor-property/llms-full.txt): Gets or sets the display color for the area around the pages.
- [TextControl.Colors.FormFieldColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol-colors/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 Color.Transparent.
- [TextControl.Colors.HeaderFooterLabelColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol-colors/headerfooterlabelcolor-property/llms-full.txt): Gets or sets the display color for the label showing which header or footer is activated.
- [TextControl.Colors.HeaderFooterLineColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol-colors/headerfooterlinecolor-property/llms-full.txt): Gets or sets the display color for the dividing line between headers and footers and the main text.
- [TextControl.Colors.LightShadowColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol-colors/lightshadowcolor-property/llms-full.txt): Gets or sets the display color for the shadow at the left and the top edge of the pages.
- [TextControl.Colors.ResetActiveFormFieldColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol-colors/resetactiveformfieldcolor-method/llms-full.txt): Resets the text control's ActiveFormFieldColor to its default value.
- [TextControl.Colors.ResetDarkShadowColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol-colors/resetdarkshadowcolor-method/llms-full.txt): Resets the text control's DarkShadowColor to its system dependent default value.
- [TextControl.Colors.ResetDesktopColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol-colors/resetdesktopcolor-method/llms-full.txt): Resets the text control's DesktopColor to its system dependent default value.
- [TextControl.Colors.ResetFormFieldColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol-colors/resetformfieldcolor-method/llms-full.txt): Resets the text control's FormFieldColor to its default value.
- [TextControl.Colors.ResetHeaderFooterLabelColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol-colors/resetheaderfooterlabelcolor-method/llms-full.txt): Resets the text control's HeaderFooterLabelColor to its system dependent default value.
- [TextControl.Colors.ResetHeaderFooterLineColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol-colors/resetheaderfooterlinecolor-method/llms-full.txt): Resets the text control's HeaderFooterLineColor to its system dependent default value.
- [TextControl.Colors.ResetLightShadowColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol-colors/resetlightshadowcolor-method/llms-full.txt): Resets the text control's LightShadowColor to its system dependent default value.

---

## Nearby

- **Previous:** [TextControl.ClientToDocument Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/clienttodocument-method/llms-full.txt)
- **Next:** [TextControl.Colors.ActiveFormFieldColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol-colors/activeformfieldcolor-property/llms-full.txt)
