TX Text Control .NET for WPF

TopBorderColor Property

Property|Introduced in 17.0
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 color of the table cell's top border.

Syntax

public Color TopBorderColor { get; set; }

Examples

The following example creates a small report table and works with its structure by using TableCellFormat.TopBorderColor.

textControl.Tables.Add(3, 3, 10);
Table table = textControl.Tables.GetItem(10);
TableCellFormat tableCellFormat = table.Cells[1, 1].CellFormat;

tableCellFormat.TopBorderColor = System.Drawing.Color.LightSteelBlue;
Console.WriteLine($"Top Border Color used by Table Cell Format: {tableCellFormat.TopBorderColor}");