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

            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "movie")
                {
                    ctObj.movie = CT_Rel.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "control")
                {
                    ctObj.control = CT_Control.Parse(childNode, namespaceManager);
                }
                else if (childNode.Prefix == "o")
                {
                    ctObj.ItemsElementName.Add(ItemsChoiceType9.office);
                    ctObj.Items.Add(childNode);
                }
                else if (childNode.Prefix == "v")
                {
                    ctObj.ItemsElementName.Add(ItemsChoiceType9.vml);
                    ctObj.Items.Add(childNode);
                }
            }
            return(ctObj);
        }
示例#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);
        }