TX Text Control .NET for WPF

TextBackColor Property

Property|Introduced in 10.1
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets the style's text background color.

Syntax

public Color TextBackColor { get; set; }

Examples

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

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);