예제 #1
0
        public CT_ScatterSer AddNewSer()
        {
            if (this.serField == null)
            {
                this.serField = new List <CT_ScatterSer>();
            }
            CT_ScatterSer ser = new CT_ScatterSer();

            this.serField.Add(ser);
            return(ser);
        }
예제 #2
0
 public static CT_ScatterSer Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_ScatterSer ctObj = new CT_ScatterSer();
     ctObj.dPt = new List<CT_DPt>();
     ctObj.trendline = new List<CT_Trendline>();
     ctObj.errBars = new List<CT_ErrBars>();
     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 == "marker")
             ctObj.marker = CT_Marker.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "dLbls")
             ctObj.dLbls = CT_DLbls.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "xVal")
             ctObj.xVal = CT_AxDataSource.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "yVal")
             ctObj.yVal = CT_NumDataSource.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "smooth")
             ctObj.smooth = CT_Boolean.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "dPt")
             ctObj.dPt.Add(CT_DPt.Parse(childNode, namespaceManager));
         else if (childNode.LocalName == "trendline")
             ctObj.trendline.Add(CT_Trendline.Parse(childNode, namespaceManager));
         else if (childNode.LocalName == "errBars")
             ctObj.errBars.Add(CT_ErrBars.Parse(childNode, namespaceManager));
         else if (childNode.LocalName == "extLst")
             ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager));
     }
     return ctObj;
 }
예제 #3
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);
        }
예제 #4
0
 public CT_ScatterSer AddNewSer()
 {
     if (this.serField == null)
         this.serField = new List<CT_ScatterSer>();
     CT_ScatterSer ser = new CT_ScatterSer();
     this.serField.Add(ser);
     return ser;
 }
예제 #5
0
        public static CT_ScatterSer Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_ScatterSer ctObj = new CT_ScatterSer();

            ctObj.dPt       = new List <CT_DPt>();
            ctObj.trendline = new List <CT_Trendline>();
            ctObj.errBars   = new List <CT_ErrBars>();
            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 == "marker")
                {
                    ctObj.marker = CT_Marker.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "dLbls")
                {
                    ctObj.dLbls = CT_DLbls.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "xVal")
                {
                    ctObj.xVal = CT_AxDataSource.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "yVal")
                {
                    ctObj.yVal = CT_NumDataSource.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "smooth")
                {
                    ctObj.smooth = CT_Boolean.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "dPt")
                {
                    ctObj.dPt.Add(CT_DPt.Parse(childNode, namespaceManager));
                }
                else if (childNode.LocalName == "trendline")
                {
                    ctObj.trendline.Add(CT_Trendline.Parse(childNode, namespaceManager));
                }
                else if (childNode.LocalName == "errBars")
                {
                    ctObj.errBars.Add(CT_ErrBars.Parse(childNode, namespaceManager));
                }
                else if (childNode.LocalName == "extLst")
                {
                    ctObj.extLst.Add(CT_Extension.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }