IPrxFormulaIsland.Style

Syntax

Style: IPrxCellStyle

Description

The Style property determines formatting parameters of a formula area.

Example

Sub main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

Report: IPrxReport;

FormulaIs: IPrxFormulaIslands;

Formula: IPrxFormulaIsland;

Style : IPrxCellStyle;

Begin

MB := MetabaseClass.Active;

MObj := MB.ItemById("Report").Edit;

Report := MObj As IPrxReport;

FormulaIs := Report.FormulaIslands;

Formula := FormulaIs.Item(0);

Style := Formula.Style;

Style.BackgroundColor := New GxColor.CreateRGB(255,0,0);

Style.Font.Bold := TriState.OnOption;

Style.Font.Color := New GxColor.CreateRGB(0,0,255);

Formula.Save;

MObj.Save;

End Sub main;

After executing the example formatting parameters are set up for the formula area. Report - identifier of the regular report, which sheet contains the formula area.

See also:

IPrxFormulaIsland