コード例 #1
0
        public static CT_Surface3DChart Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_Surface3DChart ctObj = new CT_Surface3DChart();

            ctObj.ser      = new List <CT_SurfaceSer>();
            ctObj.bandFmts = new List <CT_BandFmt>();
            ctObj.axId     = new List <CT_UnsignedInt>();
            ctObj.extLst   = new List <CT_Extension>();
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "wireframe")
                {
                    ctObj.wireframe = CT_Boolean.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "ser")
                {
                    ctObj.ser.Add(CT_SurfaceSer.Parse(childNode, namespaceManager));
                }
                else if (childNode.LocalName == "bandFmts")
                {
                    ctObj.bandFmts.Add(CT_BandFmt.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);
        }
コード例 #2
0
ファイル: SurfaceChart.cs プロジェクト: JnS-Software-LLC/npoi
 public static CT_Surface3DChart Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_Surface3DChart ctObj = new CT_Surface3DChart();
     ctObj.ser = new List<CT_SurfaceSer>();
     ctObj.bandFmts = new List<CT_BandFmt>();
     ctObj.axId = new List<CT_UnsignedInt>();
     ctObj.extLst = new List<CT_Extension>();
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "wireframe")
             ctObj.wireframe = CT_Boolean.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "ser")
             ctObj.ser.Add(CT_SurfaceSer.Parse(childNode, namespaceManager));
         else if (childNode.LocalName == "bandFmts")
             ctObj.bandFmts.Add(CT_BandFmt.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;
 }