示例#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);
        }
示例#2
0
        public static CT_GroupShapeNonVisual Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_GroupShapeNonVisual ctObj = new CT_GroupShapeNonVisual();

            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "cNvPr")
                {
                    ctObj.cNvPr = CT_NonVisualDrawingProps.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "cNvGrpSpPr")
                {
                    ctObj.cNvGrpSpPr = CT_NonVisualGroupDrawingShapeProps.Parse(childNode, namespaceManager);
                }
            }
            return(ctObj);
        }
示例#3
0
 public static CT_GroupShapeNonVisual Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_GroupShapeNonVisual ctObj = new CT_GroupShapeNonVisual();
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "cNvPr")
             ctObj.cNvPr = CT_NonVisualDrawingProps.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "cNvGrpSpPr")
             ctObj.cNvGrpSpPr = CT_NonVisualGroupDrawingShapeProps.Parse(childNode, namespaceManager);
     }
     return ctObj;
 }
示例#4
0
 public CT_GroupShapeNonVisual AddNewNvGrpSpPr()
 {
     this.nvGrpSpPrField = new CT_GroupShapeNonVisual();
     return this.nvGrpSpPrField;
 }
示例#5
0
 public void Set(CT_GroupShape groupShape)
 {
     this.grpSpPrField = groupShape.grpSpPr;
     this.nvGrpSpPrField = groupShape.nvGrpSpPr;
 }
示例#6
0
 public CT_GroupShapeNonVisual AddNewNvGrpSpPr()
 {
     this.nvGrpSpPrField = new CT_GroupShapeNonVisual();
     return(this.nvGrpSpPrField);
 }
示例#7
0
 public void Set(CT_GroupShape groupShape)
 {
     this.grpSpPrField   = groupShape.grpSpPr;
     this.nvGrpSpPrField = groupShape.nvGrpSpPr;
 }