ITabCellStyle.BorderStyle

Syntax

BorderStyle(Index: TabBorder): TabBorderStyle;

Parameters

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

Description

The BorderStyle property determines the line type of the specified table cell border. The border of the cell is passed as the Index parameter.

Example

Executing the example requires a form with the Button1 button located on it, the TabSheetBox component and the UiTabSheet component named UiTabSheet1. 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