ITabCellStyle.BorderWeight

Syntax

BorderWeight(Index: TabBorder): TabBorderWeight;

Parameters

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

Description

The BorderColor property determines the line thickness of the specified table cell border.

Example

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