Example #1
0
 public static CT_LineSer Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_LineSer ctObj = new CT_LineSer();
     ctObj.dPt = new List<CT_DPt>();
     ctObj.trendline = new List<CT_Trendline>();
     ctObj.extLst = new List<CT_Extension>();
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "idx")
             ctObj.idx = CT_UnsignedInt.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "order")
             ctObj.order = CT_UnsignedInt.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "tx")
             ctObj.tx = CT_SerTx.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "spPr")
             ctObj.spPr = CT_ShapeProperties.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "marker")
             ctObj.marker = CT_Marker.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "dLbls")
             ctObj.dLbls = CT_DLbls.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "errBars")
             ctObj.errBars = CT_ErrBars.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "cat")
             ctObj.cat = CT_AxDataSource.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "val")
             ctObj.val = CT_NumDataSource.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "smooth")
             ctObj.smooth = CT_Boolean.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "dPt")
             ctObj.dPt.Add(CT_DPt.Parse(childNode, namespaceManager));
         else if (childNode.LocalName == "trendline")
             ctObj.trendline.Add(CT_Trendline.Parse(childNode, namespaceManager));
         else if (childNode.LocalName == "extLst")
             ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager));
     }
     return ctObj;
 }
Example #2
0
 public CT_LineSer AddNewSer()
 {
     CT_LineSer newSer = new  CT_LineSer();
     if (this.serField == null)
     {
         this.serField = new List<CT_LineSer>();
     }
     this.serField.Add(newSer);
     return newSer;
 }