ShapeRange.Group Method

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

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Function Group As Shape
'Usage
Dim instance As ShapeRange
Dim returnValue As Shape

returnValue = instance.Group()
Shape Group()

Return Value

Type: Microsoft.Office.Interop.Word.Shape

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.

See Also

Reference

ShapeRange Interface

ShapeRange Members

Microsoft.Office.Interop.Word Namespace