コード例 #1
0
        private int CountMergeCells(CellRange cells)
        {
            var c        = cells[0];
            var mcs      = c.GetMergedRanges();
            int rowCount = mcs[0].RowCount;
            //int column = c.ColumnIndex;
            //int row = c.RowIndex;
            string label = cells.GetReferenceA1(); //["Range"];

            return(rowCount);
        }