var instance = new GC.Spread.Sheets.Worksheet(name); var value; // Type: Rect value = instance.getCellRect(row, col, rowViewportIndex, colViewportIndex);
function getCellRect( row : number, col : number, rowViewportIndex : number, colViewportIndex : number ) : Rect;
Parameters
- row
- The row index.
- col
- The column index.
- rowViewportIndex
- Index of the row of the viewport: -1 represents column header area, 0 represents frozen row area, 1 represents viewport area, 2 represents trailing frozen row area.
- colViewportIndex
- Index of the column of the viewport: -1 represents row header area, 0 represents frozen column area, 1 represents viewport area, 2 represents trailing frozen column area.
Return Value
Object that contains the size and location of the cell rectangle.