Layout : IPrxTableIslandLayout;
The Layout property returns structure of the layout, to which the row belongs.
Sub UserProc;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Report: IPrxReport;
TabIs: IPrxTableIslands;
TI: IPrxTableIsland;
Layout: IPrxTableIslandLayout;
Row: IPrxTableIslandLayoutRow;
Count: Integer;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("REPORT").Bind;
Report := MObj As IPrxReport;
TabIs := Report.TableIslands;
TI := TabIs.Item(0);
Layout := TI.Layout;
Row := Layout.Rows(0);
Count := Row.Layout.Count;
Debug.WriteLine(Count);
End Sub UserProc
After executing the example the console window displays the number of rows in the layout. Report - identifier of a regular report.
See also: