# FormattingStyle.TextBackColor Property

> Gets or sets the style's text background color.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 10.1
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > FormattingStyle.TextBackColor Property
- **431 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/formattingstyle/textbackcolor-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/formattingstyle/textbackcolor-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/formattingstyle/textbackcolor-property/llms-full.txt

---

### Description

Gets or sets the style's text background color.

### Syntax

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

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

### Examples

The following example creates a reusable emphasis style and adds it to the document by using `FormattingStyle.TextBackColor`.

```csharp
FormattingStyle formattingStyle = new InlineStyle("Emphasis");

formattingStyle.TextBackColor = System.Drawing.Color.LightSteelBlue;
Console.WriteLine($"Text Back Color used by Formatting Style: {formattingStyle.TextBackColor}");

textControl.InlineStyles.Add((InlineStyle)formattingStyle);
```

```vbnet
Dim formattingStyle As FormattingStyle = New InlineStyle("Emphasis")

formattingStyle.TextBackColor = System.Drawing.Color.LightSteelBlue
Console.WriteLine($"Text Back Color used by Formatting Style: {formattingStyle.TextBackColor}")

textControl.InlineStyles.Add(DirectCast(formattingStyle, InlineStyle))
```

---

## Nearby

- **Previous:** [FormattingStyle.Strikeout Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/formattingstyle/strikeout-property/llms-full.txt)
- **Next:** [FormattingStyle.Underline Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/formattingstyle/underline-property/llms-full.txt)
