rvico TRichView Reference | Item Types | Table | Rows


Top  Previous  Next

Returns the main (top left) cell for given merged cell.

function GetMainCell(ARow,ACol: Integer; var MRow, MCol: Integer): TRVTableCellData;

Some cells in table can be equal to nil due to cell-merging. This method allows to find the top left cell overlapping the given merged cell.

Input parameters:

ARow and ACol specify some cell in the table. Table.Cells[ARow, ACol] can be nil.

Output parameters:

MRow and MCol receive position of the main cell. This cell is never equal to nil.

if Table.Cells[ARow, ACol]<>nil then MRow will be equal to ARow and MCol will be equal to ACol.

Return value:

Table.Cells[MRow, MCol]

TRichView © trichview.com