Exemplo n.º 1
0
        public static CT_GroupShape Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_GroupShape ctObj = new CT_GroupShape();

            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "nvGrpSpPr")
                {
                    ctObj.nvGrpSpPr = CT_GroupShapeNonVisual.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "grpSpPr")
                {
                    ctObj.grpSpPr = CT_GroupShapeProperties.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "pic")
                {
                    var pic = CT_Picture.Parse(childNode, namespaceManager);
                    ctObj.pictures.Add(pic);
                }
                else if (childNode.LocalName == "sp")
                {
                    var shape = CT_Shape.Parse(childNode, namespaceManager);
                    ctObj.shapes.Add(shape);
                }
            }
            return(ctObj);
        }