checkRange method

void checkRange(
  1. int row,
  2. int column
)

Checks if specified cell has correct row and column index.

Implementation

void checkRange(int row, int column) {
  if (row < 1 ||
      row > workbook._maxRowCount ||
      column < 1 ||
      column > workbook._maxColumnCount) {
    throw Exception(
        'Specified argument was out of the range of valid values.');
  }
}