includeBottomAdjacents method

Range includeBottomAdjacents(
  1. int topRow,
  2. int leftColumn,
  3. int bottomRow,
  4. int rightColumn,
  5. Range filterRange,
)

Set range adjacents for Bottom column

Implementation

Range includeBottomAdjacents(
  int topRow,
  int leftColumn,
  int bottomRow,
  int rightColumn,
  Range filterRange,
) {
  _initializeFilterRange(topRow, leftColumn, bottomRow, rightColumn);
  _hasAdjacents = false;
  _getBottomAdjacents(
    topRow,
    leftColumn,
    bottomRow,
    rightColumn,
    filterRange,
  );
  filterRange = filterRange.worksheet.getRangeByIndex(
    _topRow,
    _leftColumn,
    _bottomRow,
    _rightColumn,
  );
  if (_hasAdjacents) {
    filterRange = includeBottomAdjacents(
      _topRow,
      _leftColumn,
      _bottomRow,
      _rightColumn,
      filterRange,
    );
  }
  return filterRange;
}