IEaxTableStyle.DefaultStyle

Syntax

DefaultStyle: ITabCellStyle;

Description

The DefaultStyle property determines the style applied to various table elements by default.

Comments

By default the DefaultStyle style does not have style settings. If any style settings are determined in DefaultStyle, they are applied to all table elements (row/column headers, data cells, corner cell and so on), if individual settings are not determined for these elements.

Example

Executing the example requires a form with the Button1 button, the UiErAnalyzer component named UiErAnalyzer1 and any visual components displaying data of the express report, which is connected to UiErAnalyzer1.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Express: IEaxAnalyzer;
    Grid: IEaxGrid;
    Style: IEaxTableStyle;
Begin
    Express := UiErAnalyzer1.ErAnalyzer;
    Grid := Express.Grid;
    Style := Grid.Style;
    //Data cell style
    Style.InternalStyle.BackgroundBrush := New GxSolidBrush.Create(GxColor.FromName("Aquamarine"));
    //Default style
    Style.DefaultStyle.BackgroundBrush := New GxSolidBrush.Create(GxColor.FromName("LightGreen"));
    Grid.Refresh;
End Sub Button1OnClick;

Clicking the button sets background color for data cells. It also determines the background color that is applied for all table elements, which do not have their own background color.

See also:

IEaxTableStyle