public static CT_Area3DChart Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) { return(null); } CT_Area3DChart ctObj = new CT_Area3DChart(); ctObj.ser = new List <CT_AreaSer>(); ctObj.axId = new List <CT_UnsignedInt>(); ctObj.extLst = new List <CT_Extension>(); foreach (XmlNode childNode in node.ChildNodes) { if (childNode.LocalName == "grouping") { ctObj.grouping = CT_Grouping.Parse(childNode, namespaceManager); } else if (childNode.LocalName == "varyColors") { ctObj.varyColors = CT_Boolean.Parse(childNode, namespaceManager); } else if (childNode.LocalName == "dLbls") { ctObj.dLbls = CT_DLbls.Parse(childNode, namespaceManager); } else if (childNode.LocalName == "dropLines") { ctObj.dropLines = CT_ChartLines.Parse(childNode, namespaceManager); } else if (childNode.LocalName == "gapDepth") { ctObj.gapDepth = CT_GapAmount.Parse(childNode, namespaceManager); } else if (childNode.LocalName == "ser") { ctObj.ser.Add(CT_AreaSer.Parse(childNode, namespaceManager)); } else if (childNode.LocalName == "axId") { ctObj.axId.Add(CT_UnsignedInt.Parse(childNode, namespaceManager)); } else if (childNode.LocalName == "extLst") { ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager)); } } return(ctObj); }
public static CT_AreaSer Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) { return(null); } CT_AreaSer ctObj = new CT_AreaSer(); ctObj.dPt = new List <CT_DPt>(); ctObj.trendline = new List <CT_Trendline>(); ctObj.errBars = new List <CT_ErrBars>(); 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 == "pictureOptions") { ctObj.pictureOptions = CT_PictureOptions.Parse(childNode, namespaceManager); } else if (childNode.LocalName == "dLbls") { ctObj.dLbls = CT_DLbls.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 == "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 == "errBars") { ctObj.errBars.Add(CT_ErrBars.Parse(childNode, namespaceManager)); } else if (childNode.LocalName == "extLst") { ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager)); } } return(ctObj); }
public static CT_AreaSer Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) return null; CT_AreaSer ctObj = new CT_AreaSer(); ctObj.dPt = new List<CT_DPt>(); ctObj.trendline = new List<CT_Trendline>(); ctObj.errBars = new List<CT_ErrBars>(); 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 == "pictureOptions") ctObj.pictureOptions = CT_PictureOptions.Parse(childNode, namespaceManager); else if (childNode.LocalName == "dLbls") ctObj.dLbls = CT_DLbls.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 == "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 == "errBars") ctObj.errBars.Add(CT_ErrBars.Parse(childNode, namespaceManager)); else if (childNode.LocalName == "extLst") ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager)); } return ctObj; }