BorderStyle(Index: TabBorder): TabBorderStyle;
Index determines the border of the cell, for which the line type should be defined.
The BorderStyle property determines the line type of the specified table cell border. The border of the cell is passed as the Index parameter.
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: