public int findEndOfRowOutlineGroup(int row) {int level = getRow( row ).getOutlineLevel();int currentRow;for (currentRow = row; currentRow < getLastRowNum(); currentRow++) {if (getRow(currentRow) == null || getRow(currentRow).getOutlineLevel() < level) {break;}}return currentRow-1;}
public int FindEndOfRowOutlineGroup(int row){int level = GetRow(row).OutlineLevel;int currentRow;for (currentRow = row; currentRow < this.LastRowNum; currentRow++){if (GetRow(currentRow) == null || GetRow(currentRow).OutlineLevel < level){break;}}return currentRow - 1;}