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_ShapeNonVisual Parse(XElement node, XmlNamespaceManager namespaceManager) { if (node == null) { return(null); } CT_ShapeNonVisual ctObj = new CT_ShapeNonVisual(); foreach (XElement childNode in node.ChildElements()) { if (childNode.Name.LocalName == "cNvPr") { ctObj.cNvPr = CT_NonVisualDrawingProps.Parse(childNode, namespaceManager); } else if (childNode.Name.LocalName == "cNvSpPr") { ctObj.cNvSpPr = CT_NonVisualDrawingShapeProps.Parse(childNode, namespaceManager); } } return(ctObj); }