Example #1
0
        public static CT_Pie3DChart Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_Pie3DChart ctObj = new CT_Pie3DChart();

            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 == "ser")
                {
                    ctObj.ser.Add(CT_PieSer.Parse(childNode, namespaceManager));
                }
                else if (childNode.LocalName == "extLst")
                {
                    ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }
Example #2
0
        public static CT_PieSer Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_PieSer ctObj = new CT_PieSer();

            ctObj.dPt    = new List <CT_DPt>();
            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 == "explosion")
                {
                    ctObj.explosion = CT_UnsignedInt.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 == "extLst")
                {
                    ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }
Example #3
0
        public static CT_OfPieChart Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_OfPieChart ctObj = new CT_OfPieChart();

            ctObj.ser       = new List <CT_PieSer>();
            ctObj.custSplit = new List <CT_UnsignedInt>();
            ctObj.serLines  = new List <CT_ChartLines>();
            ctObj.extLst    = new List <CT_Extension>();
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "ofPieType")
                {
                    ctObj.ofPieType = CT_OfPieType.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 == "gapWidth")
                {
                    ctObj.gapWidth = CT_GapAmount.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "splitType")
                {
                    ctObj.splitType = CT_SplitType.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "splitPos")
                {
                    ctObj.splitPos = CT_Double.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "secondPieSize")
                {
                    ctObj.secondPieSize = CT_SecondPieSize.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "ser")
                {
                    ctObj.ser.Add(CT_PieSer.Parse(childNode, namespaceManager));
                }
                else if (childNode.LocalName == "custSplit")
                {
                    ctObj.custSplit.Add(CT_UnsignedInt.Parse(childNode, namespaceManager));
                }
                else if (childNode.LocalName == "serLines")
                {
                    ctObj.serLines.Add(CT_ChartLines.Parse(childNode, namespaceManager));
                }
                else if (childNode.LocalName == "extLst")
                {
                    ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }
Example #4
0
 public static CT_PieSer Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_PieSer ctObj = new CT_PieSer();
     ctObj.dPt = new List<CT_DPt>();
     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 == "explosion")
             ctObj.explosion = CT_UnsignedInt.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 == "extLst")
             ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager));
     }
     return ctObj;
 }