[]
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.
IShapeRange Ungroup()
Function Ungroup() As IShapeRange
| Type | Description |
|---|---|
| IShapeRange | An IShapeRange object that represents the ungrouped shapes. |
IShape rectangle = worksheet.Shapes.AddShape("rectangle", AutoShapeType.Rectangle, 20, 20, 80, 50);
IShape oval = worksheet.Shapes.AddShape("oval", AutoShapeType.Oval, 40, 40, 80, 50);
IShape groupShape = worksheet.Shapes.Range[new int[] {0, 1}].Group();
IShapeRange ungroupedShapes = groupShape.Ungroup();
int count = ungroupedShapes.Count;