Aspose::Cells::Drawing::ShapeCollection::Ungroup method
ShapeCollection::Ungroup method
Ungroups the shape items.
void Aspose::Cells::Drawing::ShapeCollection::Ungroup(const GroupShape &group)
Parameter | Type | Description |
---|---|---|
group | const GroupShape& | The group shape. |
Remarks
If the group shape is grouped by another group shape,nothing will be done.
Examples
//add first shape
shapes.AddRectangle(2, 0, 2, 0, 50, 50);
//add second shape
shapes.AddRectangle(6, 0, 2, 0, 30, 30);
//group
Vector<Shape> shapesArr{ shapes.Get(0), shapes.Get(1) };
GroupShape groupShape = shapes.Group(shapesArr);
//ungroup
shapes.Ungroup(groupShape);
See Also
- Class Vector
- Class GroupShape
- Class ShapeCollection
- Namespace Aspose::Cells::Drawing
- Library Aspose.Cells for C++