Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 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;
 }