IPrxTableIslandLayoutCell.Style

Syntax

Style: IPrxCellStyle;

Description

The Style property determines formatting parameters for a layout cell.

Example

Sub Main;

Var

MB: IMetabase;

MObj : IMetabaseObject;

Report : IPrxReport;

TabIs : IPrxTableIslands;

TI : IPrxTableIsland;

Layout : IPrxTableIslandLayout;

Row : IPrxTableIslandLayoutRow;

Cell : IPrxTableIslandLayoutCell;

Style : IPrxCellStyle;

Begin

MB := MetabaseClass.Active;

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

Report := MObj As IPrxReport;

TabIs := Report.TableIslands;

TI := TabIs.Item(0);

TI := TI.Edit;

Layout := TI.Layout;

Row := Layout.Rows(0);

Cell := Row.Cells(1);

Style := Cell.Style;

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

Style.Font.Bold := TriState.OnOption;

TI.Save;

MObj.Save;

End Sub Main;

After executing the example formatting parameters are changed for the layout row cell. Report - identifier of the regular report, which sheet contains a relational data area.

See also:

IPrxTableIslandLayoutCell