IEaxTableStyle.ABCHeaderStyle

Syntax

ABCHeaderStyle: ITabCellStyle;

Description

The ABCHeaderStyle property determines formatting style applied to header of the column with enabled 80/20 analysis in the express report table.

Example

Executing the example requires that the repository contains an express report with the EXPRESS_REPORT identifier.

Sub UserProc;
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    Expr: IEaxAnalyzer;
    Grid: IEaxGrid;
    Style: IEaxTableStyle;
    HeaderStyle, CellStyle: ITabCellStyle;
    Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById("EXPRESS_REPORT").Edit;
    Expr := MObj As IEaxAnalyzer;
    Grid := Expr.Grid;
    // Header style
    HeaderStyle := New TabCellStyle.Create;
    HeaderStyle.BackgroundColor := GxColor.FromName("Green");
    HeaderStyle.Font.Bold := TriState.OnOption;
    // Cell style
    CellStyle := New TabCellStyle.Create;
    CellStyle.BackgroundColor := GxColor.FromName("Yellow");
    Style := Grid.Style;
    Style.ABCHeaderStyle := HeaderStyle;
    Style.ABCStyle := CellStyle;
    // Column, used for the 80/20 analysis
    Expr.Pivot.ABCColumn := 2;
    MObj.Save;
End Sub UserProc;

After executing the example, formatting styles are changed for header and cells of the column, for which the 80/20 analysis is enabled. Analysis is applied to data of the third table column.

See also:

IEaxTableStyle|IEaxGrid.Activate8020|80/20 analysis