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); }
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); }
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; }
public CT_GroupShapeNonVisual AddNewNvGrpSpPr() { this.nvGrpSpPrField = new CT_GroupShapeNonVisual(); return this.nvGrpSpPrField; }
public void Set(CT_GroupShape groupShape) { this.grpSpPrField = groupShape.grpSpPr; this.nvGrpSpPrField = groupShape.nvGrpSpPr; }
public CT_GroupShapeNonVisual AddNewNvGrpSpPr() { this.nvGrpSpPrField = new CT_GroupShapeNonVisual(); return(this.nvGrpSpPrField); }