ShapeCollection.Ungroup
ShapeCollection.Ungroup method
Ungroups the shape items.
public void Ungroup(GroupShape group)
Parameter | Type | Description |
---|---|---|
group | GroupShape | The group shape. |
Remarks
If the group shape is grouped by another group shape,nothing will be done.
Examples
[C#]
//add first shape
shapes.AddRectangle(2, 0, 2, 0, 50, 50);
//add second shape
shapes.AddRectangle(6, 0, 2, 0, 30, 30);
//group
Shape[] shapesArr = new Shape[] { shapes[0], shapes[1] };
GroupShape groupShape = shapes.Group(shapesArr);
//ungroup
shapes.Ungroup(groupShape);
See Also
- class GroupShape
- class ShapeCollection
- namespace Aspose.Cells.Drawing
- assembly Aspose.Cells