Programmer's Guide > Interfaces > TableCell interface > rectangle method
  
rectangle method
Returns a TableRectangle with this cell on one corner and the cell given as the parameter on the other corner. Either cell may be the upper left cell. Both must be in the same grid.
rectangle(otherCorner )
Parameters
TableCellotherCorner
The TableCell that defines the other corner of the rectangle.
Returns
TableRectangle. A rectangle with the specified corner cells.
Throws
TableException
INVALID_PARAMETER_ERR: Raised if the two cells are not in the same grid.