ShapeRange.Group Method

Definition

Groups the shapes in the specified range. Returns the grouped shapes as a single Shape object.

public:
 Microsoft::Office::Interop::Excel::Shape ^ Group();
public Microsoft.Office.Interop.Excel.Shape Group ();
Public Function Group () As Shape

Returns

Remarks

Because a group of shapes is treated as a single shape, grouping and ungrouping shapes changes the number of items in the Shapes collection and changes the index numbers of items that come after the affected items in the collection.

Applies to