ILanerCellStyle.TabStyle

Syntax

TabStyle: ITabCellStyle;

Description

The TabStyle property returns formatting style of a workbook cell.

Comments

By default TabStyle contains an empty detached style.

Example

Executing the example requires a form with the Button1 button, the LanerBox component named LanerBox1 and the UiErAnalyzer component named UiErAnalyzer1 that is a data source for the LanerBox component. Workbook of the time series database must be loaded to UiErAnalyzer1.

Click the button to start executing this example.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    ErAnalyzer: IEaxAnalyzer;
    Laner: ILaner;
    Style: ILanerCellStyle;
    TabSt: ITabCellStyle;
    Grid: IEaxGrid;
Begin
    ErAnalyzer := UiErAnalyzer1.ErAnalyzer;
    Laner := ErAnalyzer.Laner;
    Style := Laner.CellStyle(LnCellType.Splice);
    TabSt := Style.TabStyle;
    // Changing font color for red
    TabSt.Font.Color := GxColor.FromName("Red");
    // Changing cells background color for orange
    TabSt.BackgroundColor := GxColor.FromName("Orange");
    // Changing font for Arial
    TabSt.Font.Name := "Arial";
    Grid := ErAnalyzer.Grid;
    Grid.Refresh;
End Sub Button1OnClick;

After executing the example, formatting for series cells, that are the child ones for the resulting spliced series, is changed:

See also:

ILanerCellStyle