public int findStartOfRowOutlineGroup(int row) {RowRecord rowRecord = this.getRow( row );int level = rowRecord.getOutlineLevel();int currentRow = row;while (currentRow >= 0 && this.getRow( currentRow ) != null) {rowRecord = this.getRow( currentRow );if (rowRecord.getOutlineLevel() < level) {return currentRow + 1;}currentRow--;}return currentRow + 1;}
public int FindStartOfRowOutlineGroup(int row){RowRecord rowRecord = this.GetRow(row);int level = rowRecord.OutlineLevel;int currentRow = row;while (this.GetRow(currentRow) != null){rowRecord = this.GetRow(currentRow);if (rowRecord.OutlineLevel < level)return currentRow + 1;currentRow--;}return currentRow + 1;}