Style: IPrxCellStyle;
The Style property determines relational data area formatting.
The following example assumes that there is the Report object with the IPrxReport type.
Sub UserProc;
Var
MB: IMetabase;
Report: IPrxReport;
TabIs: IPrxTableIslands;
TI: IPrxTableIsland;
Layout: IPrxTableIslandLayout;
LayFormat: IPrxTableIslandFormat;
Style: IPrxCellStyle;
Begin
MB := MetabaseClass.Active;
Report := MB.ItemById("RR").Edit As IPrxReport;
TabIs := Report.TableIslands;
TI := TabIs.Item(0);
TI := TI.Edit;
Layout := TI.Layout;
LayFormat := Layout.Format;
Style := LayFormat.Style;
Style.BackgroundBrush := New GxSolidBrush.Create(GxColor.FromName("Red"));
Style.Font.Bold := TriState.OnOption;
Style.Font.Color := GxColor.FromName("Blue");
TI.Save;
(Report As IMetabaseObject).Save;
End Sub UserProc;
After executing the example formatting parameters are set up for the relational data area.
See also: