示例#1
0
文件: RadarChart.cs 项目: zzy092/npoi
        public static CT_RadarStyle Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_RadarStyle ctObj = new CT_RadarStyle();

            if (node.Attributes["val"] != null)
            {
                ctObj.val = (ST_RadarStyle)Enum.Parse(typeof(ST_RadarStyle), node.Attributes["val"].Value);
            }
            return(ctObj);
        }
示例#2
0
文件: RadarChart.cs 项目: zzy092/npoi
        public static CT_RadarChart Parse(XmlNode 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 (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "radarStyle")
                {
                    ctObj.radarStyle = CT_RadarStyle.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_RadarSer.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);
        }
示例#3
0
 public static CT_RadarStyle Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_RadarStyle ctObj = new CT_RadarStyle();
     if (node.Attributes["val"] != null)
         ctObj.val = (ST_RadarStyle)Enum.Parse(typeof(ST_RadarStyle), node.Attributes["val"].Value);
     return ctObj;
 }
示例#4
0
文件: Chart.cs 项目: xoposhiy/npoi
 public CT_RadarChart()
 {
     this.extLstField = new List<CT_Extension>();
     this.axIdField = new List<CT_UnsignedInt>();
     this.dLblsField = new CT_DLbls();
     this.serField = new List<CT_RadarSer>();
     this.varyColorsField = new CT_Boolean();
     this.radarStyleField = new CT_RadarStyle();
 }