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

            ctObj.top    = XmlHelper.ReadString(node.Attributes["w:top"]);
            ctObj.right  = XmlHelper.ReadULong(node.Attributes["w:right"]);
            ctObj.bottom = XmlHelper.ReadString(node.Attributes["w:bottom"]);
            ctObj.left   = XmlHelper.ReadULong(node.Attributes["w:left"]);
            ctObj.header = XmlHelper.ReadULong(node.Attributes["w:header"]);
            ctObj.footer = XmlHelper.ReadULong(node.Attributes["w:footer"]);
            ctObj.gutter = XmlHelper.ReadULong(node.Attributes["w:gutter"]);
            return(ctObj);
        }
示例#2
0
文件: PageSetup.cs 项目: hjlfmy/npoi
 public static CT_PageMar Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_PageMar ctObj = new CT_PageMar();
     ctObj.top = XmlHelper.ReadString(node.Attributes["w:top"]);
     ctObj.right = XmlHelper.ReadULong(node.Attributes["w:right"]);
     ctObj.bottom = XmlHelper.ReadString(node.Attributes["w:bottom"]);
     ctObj.left = XmlHelper.ReadULong(node.Attributes["w:left"]);
     ctObj.header = XmlHelper.ReadULong(node.Attributes["w:header"]);
     ctObj.footer = XmlHelper.ReadULong(node.Attributes["w:footer"]);
     ctObj.gutter = XmlHelper.ReadULong(node.Attributes["w:gutter"]);
     return ctObj;
 }