Share via


Shape.Ungroup Method

Ungroups any grouped shapes in the specified shape.

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

Syntax

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

returnValue = instance.Ungroup()
ShapeRange Ungroup()

Return Value

Type: Microsoft.Office.Interop.Word.ShapeRange

Remarks

Disassembles pictures and OLE objects within the specified shape.

Returns the ungrouped shapes as a single ShapeRange object.

Because a group of shapes is treated as a single object, 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

Shape Interface

Shape Members

Microsoft.Office.Interop.Word Namespace