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; }
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); }