Programmer's Guide > Interfaces > TableGrid interface > rule method
  
rule method
Returns the rule at a specified location in the grid. Rules are addressed using cell coordinates (with (1,1) being the upper left cell). For cell (m,n), (m,n) is actually the cell's upper left corner.
rule(startCol, startRow, endCol, endRow)
Parameters
unsigned longstartCol
The starting column of the rule.
unsigned longstartRow
The ending column of the rule. It must be startCol (for a vertical rule) or startCol + 1 (for a horizontal rule).
unsigned longendCol
The starting row of the rule.
unsigned longendRow
The ending row of the rule. It must be startRow (for a horizontal rule) or starRow + 1 (for a vertical rule).
Returns
TableRule. The rule at the indicated location.
Throws
TableException
INVALID_INDEX_ERR: Raised if the indexes given do not specify a rule in this grid.