BackColor Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets the background color of a text frame.
Syntax
public Color BackColor { get; set; }Public Property BackColor As ColorExamples
The following example applies bold formatting through the text frame's selection by using TextFrame.BackColor.
Selection formattedSelection = textFrame.Selection;
formattedSelection.Bold = true;
textFrame.Selection = formattedSelection;
textFrame.BackColor = System.Drawing.Color.LightSteelBlue;
Console.WriteLine($"Back Color used by Text Frame: {textFrame.BackColor}");Dim formattedSelection As Selection = textFrame.Selection
formattedSelection.Bold = True
textFrame.Selection = formattedSelection
textFrame.BackColor = System.Drawing.Color.LightSteelBlue
Console.WriteLine($"Back Color used by Text Frame: {textFrame.BackColor}")