Ejemplo n.º 1
0
 public void AddCell(XMLCell cell)
 {
     if (!Cells.ContainsKey(cell.Index))
     {
         Cells.Add(cell.Index, cell);
     }
 }
Ejemplo n.º 2
0
 private uint SetMergerAcross(uint index, XMLCell cell)
 {
     if (cell.MergeAcross > 0)
     {
         for (int i = 1; i <= cell.MergeAcross; i++)
         {
             Cells.Add(index, new XMLCell(index, cell.Value));
             index++;
         }
     }
     return(index);
 }
Ejemplo n.º 3
0
        public void AddCells(XElement row)
        {
            uint index = Cells.Keys.IsEmpty() ? 0 : Cells.Keys.Max() + 1;

            foreach (var cellx in row.Descendants(XMLCommon.Cell))
            {
                var cell = new XMLCell(index, cellx);
                index = cell.Index;
                Cells.Add(index, cell);
                index++;
                index = SetMergerAcross(index, cell);
            }
        }