Exemple #1
0
        public static CT_RadarSer Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_RadarSer ctObj = new CT_RadarSer();

            ctObj.dPt    = new List <CT_DPt>();
            ctObj.extLst = new List <CT_Extension>();
            foreach (XElement childNode in node.ChildElements())
            {
                if (childNode.Name.LocalName == "idx")
                {
                    ctObj.idx = CT_UnsignedInt.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "order")
                {
                    ctObj.order = CT_UnsignedInt.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "tx")
                {
                    ctObj.tx = CT_SerTx.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "spPr")
                {
                    ctObj.spPr = CT_ShapeProperties.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "marker")
                {
                    ctObj.marker = CT_Marker.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "dLbls")
                {
                    ctObj.dLbls = CT_DLbls.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "cat")
                {
                    ctObj.cat = CT_AxDataSource.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "val")
                {
                    ctObj.val = CT_NumDataSource.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "dPt")
                {
                    ctObj.dPt.Add(CT_DPt.Parse(childNode, namespaceManager));
                }
                else if (childNode.Name.LocalName == "extLst")
                {
                    ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }
Exemple #2
0
        public static CT_RadarChart Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_RadarChart ctObj = new CT_RadarChart();

            ctObj.ser    = new List <CT_RadarSer>();
            ctObj.axId   = new List <CT_UnsignedInt>();
            ctObj.extLst = new List <CT_Extension>();
            foreach (XElement childNode in node.ChildElements())
            {
                if (childNode.Name.LocalName == "radarStyle")
                {
                    ctObj.radarStyle = CT_RadarStyle.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "varyColors")
                {
                    ctObj.varyColors = CT_Boolean.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "dLbls")
                {
                    ctObj.dLbls = CT_DLbls.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "ser")
                {
                    ctObj.ser.Add(CT_RadarSer.Parse(childNode, namespaceManager));
                }
                else if (childNode.Name.LocalName == "axId")
                {
                    ctObj.axId.Add(CT_UnsignedInt.Parse(childNode, namespaceManager));
                }
                else if (childNode.Name.LocalName == "extLst")
                {
                    ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }