コード例 #1
0
ファイル: PageSetup.cs プロジェクト: ornoand/npoi
        public static CT_SectType Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_SectType ctObj = new CT_SectType();

            if (node.Attributes["w:val"] != null)
            {
                ctObj.val = (ST_SectionMark)Enum.Parse(typeof(ST_SectionMark), node.Attributes["w:val"].Value);
            }
            return(ctObj);
        }
コード例 #2
0
ファイル: PageSetup.cs プロジェクト: hjlfmy/npoi
 public static CT_SectType Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_SectType ctObj = new CT_SectType();
     if (node.Attributes["w:val"] != null)
         ctObj.val = (ST_SectionMark)Enum.Parse(typeof(ST_SectionMark), node.Attributes["w:val"].Value);
     return ctObj;
 }