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

            ctObj.ser    = new List <CT_LineSer>();
            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_LineSer.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);
        }
Exemplo n.º 2
0
 public static CT_Line3DChart Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_Line3DChart ctObj = new CT_Line3DChart();
     ctObj.ser = new List<CT_LineSer>();
     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_LineSer.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;
 }