BackColor Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets the table cell's background color.
Syntax
public Color BackColor { get; set; }Public Property BackColor As ColorExamples
The following example creates a small report table and works with its structure by using TableCellFormat.BackColor.
textControl.Tables.Add(3, 3, 10);
Table table = textControl.Tables.GetItem(10);
TableCellFormat tableCellFormat = table.Cells[1, 1].CellFormat;
tableCellFormat.BackColor = System.Drawing.Color.LightSteelBlue;
Console.WriteLine($"Back Color used by Table Cell Format: {tableCellFormat.BackColor}");textControl.Tables.Add(3, 3, 10)
Dim table As Table = textControl.Tables.GetItem(10)
Dim tableCellFormat As TableCellFormat = table.Cells(1, 1).CellFormat
tableCellFormat.BackColor = System.Drawing.Color.LightSteelBlue
Console.WriteLine($"Back Color used by Table Cell Format: {tableCellFormat.BackColor}")