public static CT_PieChart Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) { return(null); } CT_PieChart ctObj = new CT_PieChart(); ctObj.ser = new List <CT_PieSer>(); ctObj.extLst = new List <CT_Extension>(); foreach (XmlNode childNode in node.ChildNodes) { 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 == "firstSliceAng") { ctObj.firstSliceAng = CT_FirstSliceAng.Parse(childNode, namespaceManager); } else if (childNode.LocalName == "ser") { ctObj.ser.Add(CT_PieSer.Parse(childNode, namespaceManager)); } else if (childNode.LocalName == "extLst") { ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager)); } } return(ctObj); }
public static CT_FirstSliceAng Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) { return(null); } CT_FirstSliceAng ctObj = new CT_FirstSliceAng(); if (node.Attributes["val"] != null) { ctObj.val = XmlHelper.ReadUShort(node.Attributes["val"]); } return(ctObj); }
public CT_DoughnutChart() { this.extLstField = new List<CT_Extension>(); this.holeSizeField = new CT_HoleSize(); this.firstSliceAngField = new CT_FirstSliceAng(); this.dLblsField = new CT_DLbls(); this.serField = new List<CT_PieSer>(); this.varyColorsField = new CT_Boolean(); }
public static CT_FirstSliceAng Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) return null; CT_FirstSliceAng ctObj = new CT_FirstSliceAng(); if (node.Attributes["val"] != null) ctObj.val = XmlHelper.ReadUShort(node.Attributes["val"]); return ctObj; }