We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Grouping and UnGrouping GroupShapes

Hi. I have many GroupShapes in my source powerpoint. When I read the ppt, is there a way to programmatically Group and UnGroup the Shapes inside that GroupShape?
If so, please give me an example of how to do it.

Thanks.

Dear Aseem,

You can group and ungroup the shapes. Each group shape is represented by Aspose.Slides.GroupShape class. It has Shapes collection which contains individual shapes i.e GroupShape.Shapes property.

If you want to group shapes, then serialize individual shapes and add them in Shapes collection using GroupShape.Shapes.Add() method.

Please see Adding shapes to a groupshape

<span style=“font-size: 12pt; font-family: “Times New Roman”;”>To ungroup them, just serialize individual shapes and
remove them from GroupShape.Shapes
collection and add them in Slide.Shapes
collection