setRowHeight method

void setRowHeight(
  1. double value,
  2. bool bIsBadFontHeight
)

Sets row height.

Implementation

void setRowHeight(double value, bool bIsBadFontHeight) {
  if (value < 0 || value > _worksheet.defaultMaxHeight) {
    throw Exception('Row Height must be in range from 0 to 409.5');
  }
  int firstRowValue = row;
  int lastRowValue = lastRow;
  if (((lastRow - row) > (workbook.maxRowCount - (lastRow - row))) &&
      lastRow == workbook.maxRowCount) {
    firstRowValue = 1;
    lastRowValue = row - 1;
  }
  for (int i = firstRowValue; i <= lastRowValue; i++) {
    _worksheet.innerSetRowHeight(i, value, bIsBadFontHeight, 6);
  }
}