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;}