GroupShape
A shape that acts as a container for other shapes. Group shapes allow multiple shapes to be treated as a single unit for positioning, sizing, and other operations.Important limitations:
- A group shape has no text frame and cannot have one
- A group shape cannot have a click action, such as a hyperlink
- Member shapes within the group can still have their own text and click actions
Properties
Unconditionally raises
TypeError. A group shape cannot have a click action or hover action.Unconditionally
False. A group shape does not have a textframe and cannot itself contain text. This does not impact the ability of shapes contained by the group to each have their own text.|ShadowFormat| object representing shadow effect for this group.A |ShadowFormat| object is always returned, even when no shadow is explicitly defined on this group shape (i.e. when the group inherits its shadow behavior).
Member of MsoShapeType identifying the type of this shape. Unconditionally
MSO_SHAPE_TYPE.GROUP in this case.|GroupShapes| object for this group. The |GroupShapes| object provides access to the group’s member shapes and provides methods for adding new ones.
Example: Creating a Group
Example: Working with Group Members
Example: Applying Shadow to Group
Inherited Properties
GroupShape inherits common shape properties fromBaseShape:
name- The name of this shapeshape_id- The unique ID of this shapeleft- The left edge positiontop- The top edge positionwidth- The width of the group’s bounding boxheight- The height of the group’s bounding boxrotation- Rotation angle in degrees
Working with GroupShapes Collection
Theshapes property returns a |GroupShapes| collection that provides methods for managing member shapes:
For details on adding shapes to a group and other collection operations, see the GroupShapes documentation.