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

            ctObj.ser    = new List <CT_ScatterSer>();
            ctObj.axId   = new List <CT_UnsignedInt>();
            ctObj.extLst = new List <CT_Extension>();
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "scatterStyle")
                {
                    ctObj.scatterStyle = CT_ScatterStyle.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 == "ser")
                {
                    ctObj.ser.Add(CT_ScatterSer.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);
        }
 public static CT_ScatterChart Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_ScatterChart ctObj = new CT_ScatterChart();
     ctObj.ser = new List<CT_ScatterSer>();
     ctObj.axId = new List<CT_UnsignedInt>();
     ctObj.extLst = new List<CT_Extension>();
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "scatterStyle")
             ctObj.scatterStyle = CT_ScatterStyle.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 == "ser")
             ctObj.ser.Add(CT_ScatterSer.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;
 }
Exemple #3
0
 public CT_ScatterChart AddNewScatterChart()
 {
     if (this.scatterChartField == null)
         this.scatterChartField = new List<CT_ScatterChart>();
     CT_ScatterChart newobj = new CT_ScatterChart();
     this.scatterChartField.Add(newobj);
     return newobj;
 }
Exemple #4
0
 public CT_ScatterChart AddNewScatterChart()
 {
     this.scatterChartField = new CT_ScatterChart();
     return this.scatterChartField;
 }