Esempio n. 1
0
        public static CT_DoughnutChart Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_DoughnutChart ctObj = new CT_DoughnutChart();

            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 == "holeSize")
                {
                    ctObj.holeSize = CT_HoleSize.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);
        }
Esempio n. 2
0
 public static CT_DoughnutChart Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_DoughnutChart ctObj = new CT_DoughnutChart();
     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 == "holeSize")
             ctObj.holeSize = CT_HoleSize.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;
 }