Example #1
0
        public static CT_Object Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_Object ctObj = new CT_Object();

            ctObj.dxaOrig = XmlHelper.ReadULong(node.Attributes["w:dxaOrig"]);
            ctObj.dyaOrig = XmlHelper.ReadULong(node.Attributes["w:dyaOrig"]);
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "control")
                {
                    ctObj.control = CT_Control.Parse(childNode, namespaceManager);
                }
            }
            return(ctObj);
        }
Example #2
0
 public static CT_Object Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_Object ctObj = new CT_Object();
     ctObj.dxaOrig = XmlHelper.ReadULong(node.Attributes["w:dxaOrig"]);
     ctObj.dyaOrig = XmlHelper.ReadULong(node.Attributes["w:dyaOrig"]);
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "control")
             ctObj.control = CT_Control.Parse(childNode, namespaceManager);
     }
     return ctObj;
 }