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 long startCol
The starting column of the rule.
unsigned long startRow
The ending column of the rule. It must be startCol (for a vertical rule) or startCol + 1 (for a horizontal rule).
unsigned long endCol
The starting row of the rule.
unsigned long endRow
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.
这对您有帮助吗?