IEaxGrid.HeaderSize

Fore Syntax

HeaderSize: IGxSize;

Fore.NET Syntax

HeaderSize: Prognoz.Platform.Interop.Drawing.GxSize;

Description

The HeaderSize property returns size of table headers.

Comments

Header size is determined by the number of rows in the header and the number of columns in the sidehead. To determine the number of rows in the header, use the IGxSize.Height property, to determine the number of columns in the table sidehead, use the IGxSize.Width.

The size of headers includes the size of additional headers, which are created on enabling different additional options in the table.

Fore Example

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

Add links to the Metabase, Express, Drawing system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Expr: IEaxAnalyzer;
    Grid: IEaxGrid;
    HSize: IGxSize;
    i, j: Integer;
Begin
    MB := MetabaseClass.Active;
    Expr := MB.ItemById(
"EAX").Bind As IEaxAnalyzer;
    Grid := Expr.Grid;
    HSize := Grid.HeaderSize;
    i := HSize.Height;
    j := HSize.Width;
End Sub UserProc;

After executing this example the "i" variable contains the number of rows in the header, and the "j" variable contains the number of columns in the sidehead of express report table.

Fore.NET Example

The requirements and result of the Fore.NET Example execution match with those in the Fore Example.

Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Drawing;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    Expr: IEaxAnalyzer;
    Grid: IEaxGrid;
    HSize: IGxSize;
    i, j: Integer;
Begin
    MB := Params.Metabase;
    Expr := MB.ItemById["EAX"].Bind() As IEaxAnalyzer;
    Grid := Expr.Grid;
    HSize := Grid.HeaderSize;
    i := HSize.Height;
    j := HSize.Width;
End Sub;

See also:

IEaxGrid