# TextControlColors.TextColor Property

> Gets or sets the color for the text.

- **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 > TextControlColors.TextColor Property
- **325 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrolcolors/textcolor-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrolcolors/textcolor-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrolcolors/textcolor-property/llms-full.txt

---

### Description

Gets or sets the color for the text.

### Syntax

```csharp
public Color TextColor { get; set; }
```

```vbnet
Public Property TextColor As Color
```

### Examples

The following example uses `TextControlColors.TextColor` to configure text color as part of the text control colors workflow. The configured value is checked before the workflow continues.

```csharp
textControlColors.TextColor = System.Windows.Media.Colors.CornflowerBlue;
Console.WriteLine($"Text Color used by Text Control Colors: {textControlColors.TextColor}");
```

```vbnet
textControlColors.TextColor = System.Windows.Media.Colors.CornflowerBlue
Console.WriteLine($"Text Color used by Text Control Colors: {textControlColors.TextColor}")
```

---

## Nearby

- **Previous:** [TextControlColors.TextBackColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrolcolors/textbackcolor-property/llms-full.txt)
- **Next:** [TextControlDocument Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontroldocument/llms-full.txt)
