TextBackColor Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
Description
Gets or sets the style's text background color.
Syntax
public Color TextBackColor { get; set; }Public Property TextBackColor As ColorExamples
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);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))