IPrxDataElementStyleCommon.Header

Syntax

Header: IPrxCellStyle;

Description

The Header property determines formatting of heading area cells.

Example

The following example assumes that there is the Report object with the IPrxReport type.

Sub UserProc;

Var

Report: IPrxReport;

DIs: IPrxDataIslands;

DI: IPrxDataIsland;

DimModel: IDimensionModel;

Prop: IPrxDataIslandProperties;

PropDim: IPrxDataIslandDimension;

Level: IPrxDataIslandLevel;

Style: IPrxDataElementStyle;

Begin

DIs := Report.DataIslands;

DI := DIs.Item(0).Edit;

    DimModel := DI.Slice.TopHeader.Item(0).Dimension.Dimension;

    Prop := DI.Properties;

    PropDim := Prop.Dimension(DimModel);

    Level := PropDim.Level(DimModel.Levels.Item(0));

    Style := Level.Style;

    Style.Header.Font.Name := "Times New Roman";

DI.Save;

End Sub UserProc;

After executing the example the heading area font is set as Times New Roman for the specified level of the dimension located in columns.

See also:

IPrxDataElementStyleCommon