add_group_shape method

add_group_shape

Creates a new empty group shape and adds it to the end of the shape collection. The group’s frame will automatically adjust to fit any shapes added to it.

Returns

The newly created IGroupShape.

def add_group_shape(self):
    ...

Examples

The following example shows how to add a group shape to a slide of PowerPoint Presentation.

add_group_shape

Creates a new group shape, converts the specified SVG image into individual shapes, and adds the resulting group to the end of the shape collection.

Returns

The newly created IGroupShape.

def add_group_shape(self, svg_image, x, y, width, height):
    ...
ParameterTypeDescription
svg_imageISvgImageThe ISvgImage containing vector content to convert into shapes.
xfloatThe x-coordinate of the group’s frame, in points.
yfloatThe y-coordinate of the group’s frame, in points.
widthfloatThe width of the group’s frame, in points.
heightfloatThe height of the group’s frame, in points.

See Also