public void AddCell(SheetCellItem cell, uint rindex, SheetRowFormats rowFormats)
        {
            if (rindex < 1)
            {
                throw new ArgumentOutOfRangeException("rindex", "rowindex must greater than zero");
            }

            var r = FindRow(rindex);

            if (r == null)
            {
                r = new SheetRowItem(new List <SheetCellItem>(), rindex);
                if (rowFormats != null)
                {
                    r.RowHeight = rowFormats.RowHeight;
                }
                AddRow(r);
            }
            cell.RowIndex = rindex;
            r.RowCells.Add(cell);
        }
 public void AddCell(SheetCellItem cell, uint rindex)
 {
     AddCell(cell, rindex, null);
 }