How do I create a Group (GroupShape)

How do I create a GroupShape?

I can load an existing ppt file with groups in it - and the Shapes collection has a GroupShape, that contains it's own Shapes property, holding the shapes in that group.

But I need to generate a group through code, and can't figure out how to do that.
GroupShape doesn't have a constructor, and Shapes doesn't have a AddGroup or similar method.

I.e. - I thought the following would be the way to do it - but as I said - there is no AddGroup method.

Aspose.Slides.Presentation presentation = new Aspose.Slides.Presentation();
Aspose.Slides.Slide slide = presentation.AddEmptySlide();
Aspose.Slides.GroupShape group = slide.Shapes.AddGroup();
Aspose.Slides.Rectangle rectangle = group.Shapes.AddRectangle(100, 100, 1000, 1000);
Aspose.Slides.Ellipse ellipse = group.Shapes.AddEllipse(200, 200, 2000, 1000);


Hello Gerard,

I regret to share that at the moment the support for creating GroupShape is unavailable in Aspose.Slides for .NET. An issue with ID 19279 has already been created in our issue tracking system to further investigate and resolve the issue. This thread has also been linked with the issue so that you may be automatically notified, once the issue is resolved.

However, as a work around you may use a template slide that has a group shape in it. You may access that group shape and can add the new shapes to it. You can remove the already existing shapes in that group shapes and keep your own. You will use the existing group shape as template. Please follow the thread link to see how to add the shapes to group shape.

Thanks and Regards,