<< Return to Main Index

< Return to Class Index

CGXGridCore::CalcRectFromRowColExEx

CRect CalcRectFromRowColExEx(ROWCOL nStartRow, ROWCOL nStartCol, ROWCOL nEndRow, ROWCOL nEndCol);

CRect CalcRectFromRowColExEx(ROWCOL nRow, ROWCOL nCol);

nStartRow

Specifies the top row.

nStartCol

Specifies the left column.

nEndRow

Specifies the bottom row.

nEndCol

Specifies the right column.

nRow

Specifies the row.

nCol

Specifies the column.

Return Value

Returns the window-area for the given range of cells considering covered, merged and floated cells. The window area is enlarged. All covered cells in the range will fit into the area.

Remarks

Computes the window-area for the given range of cells. If the range contains a cell that belongs to a covered range or floated or merged cell (see SetCoveredCellsRowCol), the range will automatically include all cells of the covered range, merged or floated cell.

This method differs from CalcRectFromRowColEx in that it also considers floated and merged cells. CalcRectFromRowColEx only considers covered cells.

See Also

CGXGridCore::CalcRectFromRowColEx CGXGridCore::SetCoveredCellsRowCol

CGXGridCore

Class Overview | Class Members