コード例 #1
0
        public override void FromXmlNode(XmlNode node)
        {
            XmlNode headerNode = node.SelectSingleNode("x:Header", Namespaces.GetNamespaceManager());

            if (headerNode != null)
            {
                Header.FromXmlNode(headerNode);
            }

            XmlNode footerNode = node.SelectSingleNode("x:Footer", Namespaces.GetNamespaceManager());

            if (footerNode != null)
            {
                Footer.FromXmlNode(footerNode);
            }

            XmlNode layoutNode = node.SelectSingleNode("x:Layout", Namespaces.GetNamespaceManager());

            if (layoutNode != null)
            {
                Footer.FromXmlNode(layoutNode);
            }

            XmlNode pageMarginsNode = node.SelectSingleNode("x:PageMargins", Namespaces.GetNamespaceManager());

            if (pageMarginsNode != null)
            {
                PageMargins.FromXmlNode(pageMarginsNode);
            }
        }