Exemplo n.º 1
0
 internal ExcelVmlDrawing Add(ExcelRangeBase cell)
 {
     XmlNode node = AddDrawing(cell.Start.Row, cell.Start.Column);
     var draw = new ExcelVmlDrawing(node, cell, NameSpaceManager);
     _drawings.Add(draw);
     return draw;
 }
Exemplo n.º 2
0
 private void AddDrawingsFromXml(ExcelWorksheet ws)
 {
     var nl = VmlDrawingXml.SelectNodes("//v:shape", NameSpaceManager);
     List<IRangeID> lst = new List<IRangeID>();
     foreach (XmlNode node in nl)
     {
         int row, col;
         row = int.Parse(node.SelectSingleNode("x:ClientData/x:Row", NameSpaceManager).InnerText) + 1;
         col = int.Parse(node.SelectSingleNode("x:ClientData/x:Column", NameSpaceManager).InnerText) + 1;
         ExcelVmlDrawing drawing = new ExcelVmlDrawing(node, ws.Cells[row, col], NameSpaceManager);
         lst.Add(drawing);
     }
     _drawings = new RangeCollection(lst);
 }