ITabCellStyle.BorderColor

Syntax

BorderColor(Index: TabBorder): IGxColor;

Parameters

Index — determines the border of the cell, for which the color of the line should be defined.

Description

The BorderColor property determines the color of the specified table cell border.

Example

Executing the example requires a form with the Button1 button located on it, the UiTabSheet component named UiTabSheet1 and the TabSheetBox component. The UiTabSheet1 is a data source for the TabSheetBox component.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

TSheet: ITabSheet;

TRange: ITabRange;

Style: ITabCellStyle;

Begin

TSheet := UiTabSheet1.TabSheet;

TRange := TSheet.ParseRange("A0:B0");

Style := TRange.Style;

Style.BorderStyle(TabBorder.EdgeBottom) := TabBorderStyle.Continuous;

Style.BorderColor(TabBorder.EdgeBottom) := GxColor.FromName("Green");

Style.BorderWeight(TabBorder.EdgeBottom) := TabBorderWeight.Medium;

End Sub Button1OnClick;

Clicking the button sets bottom border for the cells in the A0:B0 range. The bottom border is marked with a red-colored solid line with average thickness.

See also:

ITabCellStyle