public CellRangeAddress remove(int rangeIndex) {if (_list.isEmpty()) {throw new RuntimeException("List is empty");}if (rangeIndex < 0 || rangeIndex >= _list.size()) {throw new RuntimeException("Range index (" + rangeIndex+ ") is outside allowable range (0.." + (_list.size()-1) + ")");}return _list.remove(rangeIndex);}
public CellRangeAddress Remove(int rangeIndex){if (_list.Count == 0){throw new Exception("List is empty");}if (rangeIndex < 0 || rangeIndex >= _list.Count){throw new Exception("Range index (" + rangeIndex+ ") is outside allowable range (0.." + (_list.Count - 1) + ")");}CellRangeAddress cra = (CellRangeAddress)_list[rangeIndex];_list.Remove(rangeIndex);return cra;}