Style : IPrxCellStyle;
The Style property determines layout formatting style.
Sub Main;
Var
MB: IMetabase;
MObj : IMetabaseObject;
Report : IPrxReport;
TabIs : IPrxTableIslands;
TI : IPrxTableIsland;
Layout : IPrxTableIslandLayout;
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;
Style := Layout.Style;
Style.BackgroundColor := New GxColor.CreateRGB(0,0,250);
Style.Font.Color := New GxColor.CreateRGB(250,0,0);
Style.Font.Italic := TriState.OnOption;
TI.Save;
MObj.Save;
End Sub Main;
After executing the example the specified formatting is applied to the layout. Report - identifier of a regular report.
See also: