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

            if (node.Attribute("val") != null)
            {
                ctObj.val = (ST_ScatterStyle)Enum.Parse(typeof(ST_ScatterStyle), node.Attribute("val").Value);
            }
            return(ctObj);
        }
Example #2
0
        public static CT_ScatterChart Parse(XElement 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 (XElement childNode in node.ChildElements())
            {
                if (childNode.Name.LocalName == "scatterStyle")
                {
                    ctObj.scatterStyle = CT_ScatterStyle.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_ScatterSer.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);
        }
Example #3
0
 public CT_ScatterStyle AddNewScatterStyle()
 {
     this.scatterStyleField = new CT_ScatterStyle();
     return(scatterStyleField);
 }