Cells(Index: Integer): IPrxTableIslandLayoutCell;
Index - index of a layout row cell.
The Cells property determines parameters of a layout row cell.
Sub UserProc;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Report: IPrxReport;
TabIs: IPrxTableIslands;
TI: IPrxTableIsland;
Layout: IPrxTableIslandLayout;
Row: IPrxTableIslandLayoutRow;
Cell: IPrxTableIslandLayoutCell;
SourceFields: IDalCursorFields;
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);
SourceFields := Report.TableSources.Item(0).Execute.Fields;
Cell.Field.FieldName := SourceFields.Item(0).Name;
Cell.Style.BackgroundBrush := New GxSolidBrush.Create(GxColor.FromName("Green"));
TI.Save;
MObj.Save;
End Sub UserProc;
After executing the example parameters of binding to a data source and layout parameters of the selected layout row cell are changed. Report - identifier of the regular report, which sheet contains a relational data area.
See also: