ShapeRange.Ungroup MethodÂ
Ungroups any grouped shapes in the specified shape or range of shapes. Disassembles pictures and OLE objects within the specified shape or range of shapes. Returns the ungrouped shapes as a single ShapeRange object.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)
Usage
Dim returnValue As ShapeRange
Dim shapeRange1 As ShapeRange
returnValue = shapeRange1.Ungroup()
Syntax
Function Ungroup() As ShapeRange
ShapeRange Ungroup();
public: ShapeRange^ Ungroup();
public ShapeRange Ungroup();
function Ungroup() : ShapeRange;
Remarks
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.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000
Target Platforms
See Also
Reference
ShapeRange Interface
Microsoft.Office.Interop.Word Namespace