# TextControlColors.TextBackColor Property

> Gets or sets the background 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.TextBackColor Property
- **335 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrolcolors/textbackcolor-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrolcolors/textbackcolor-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrolcolors/textbackcolor-property/llms-full.txt

---

### Description

Gets or sets the background color for the text.

### Syntax

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

```vbnet
Public Property TextBackColor As Color
```

### Examples

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

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

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

---

## Nearby

- **Previous:** [TextControlColors.PageBackColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrolcolors/pagebackcolor-property/llms-full.txt)
- **Next:** [TextControlColors.TextColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrolcolors/textcolor-property/llms-full.txt)
