예제 #1
0
파일: PageSetup.cs 프로젝트: hjlfmy/npoi
 public static CT_PageSz Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_PageSz ctObj = new CT_PageSz();
     ctObj.w = XmlHelper.ReadULong(node.Attributes["w:w"]);
     ctObj.h = XmlHelper.ReadULong(node.Attributes["w:h"]);
     if (node.Attributes["w:orient"] != null)
         ctObj.orient = (ST_PageOrientation)Enum.Parse(typeof(ST_PageOrientation), node.Attributes["w:orient"].Value);
     ctObj.code = XmlHelper.ReadString(node.Attributes["w:code"]);
     return ctObj;
 }
예제 #2
0
파일: PageSetup.cs 프로젝트: ornoand/npoi
        public static CT_PageSz Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_PageSz ctObj = new CT_PageSz();

            ctObj.w = XmlHelper.ReadULong(node.Attributes["w:w"]);
            ctObj.h = XmlHelper.ReadULong(node.Attributes["w:h"]);
            if (node.Attributes["w:orient"] != null)
            {
                ctObj.orient = (ST_PageOrientation)Enum.Parse(typeof(ST_PageOrientation), node.Attributes["w:orient"].Value);
            }
            ctObj.code = XmlHelper.ReadString(node.Attributes["w:code"]);
            return(ctObj);
        }