# TextControl.Colors Constructor

> 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.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Constructor
- **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.Colors Constructor
- **336 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol-colors/constructor/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol-colors/constructor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol-colors/constructor/llms-full.txt

---

### Description

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](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/displaycolors-property/llms-full.txt) property, non-set colors are reset to their default values.

### Syntax

```csharp
public Colors();
```

```vbnet
Public Sub New()
```

### 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
```

---

## Nearby

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