# TextControlColors Constructor

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

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

---

### Description

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

### Syntax

```csharp
public TextControlColors();
```

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

### 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.")
```

---

## Nearby

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