ITabSheet.AddStyle

Syntax

AddStyle(Style: ITabCellStyle): Integer;

Parameters

Style is the style, which should be added.

Description

The AddStyle method allows to add a new formatting style.

Example

Sub AddStyle;

Var

style : ITabCellStyle;

Begin

style:= New TabCellStyle.Create;

style.BackgroundColor:= New GxColor.CreateRGB(255,0,0);

UiTabSheet1.TabSheet.AddStyle(style);

UiTabSheet1.TabSheet.ParseCell("a0").Style := style;

End Sub AddStyle;

As a result for the cell "a0" a style with the red background color will be set.

See also:

ITabSheet