ShapeRange.Group Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.