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

To execute the example a form with a button on this form named Button1, a component UiTabSheet named UiTabSheet1 and a component TabSheetBox are required. 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