private static PowerPoint.Shape GetShapeFromSelection(PowerPoint.ShapeRange shapeRange) { PowerPoint.Shape shape = shapeRange.Count > 1 ? shapeRange.Group() : shapeRange[1]; return shape; }