Aspose::Cells::Drawing::ShapeCollection::Ungroup method

ShapeCollection::Ungroup method

Ungroups the shape items.

void Aspose::Cells::Drawing::ShapeCollection::Ungroup(const GroupShape &group)
ParameterTypeDescription
groupconst 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