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

Free Support Forum - aspose.com

Unable to move a GroupShape


It seem that it is not possible to move a group shape by changing its X and Y values.

Here is a sample code. Sample template is enclosed.

private void button5_Click(object sender, EventArgs e)


PresentationEx pres = new PresentationEx(@“C:\temp\grouptesttemplate.pptx”);

// Shape 0 is a group shape. Setting its coordinated has no effect

ShapeEx s = pres.Slides[0].Shapes[0];

s.X = 0F;

s.Y = 0F;

//Casting to GroupShape does not work either

//GroupShapeEx g = (GroupShapeEx)s ;

// g.ShapeLock.PositionLocked = false;

// g.X = 0;

// Here a normal shape is moved around. This works

s = pres.Slides[0].Shapes[2];

s.X = 600F;

s.Y = 500F;

pres.Save(@“C:\temp\grouptestresult.pptx”, Aspose.Slides.Export.SaveFormat.Pptx);


Is there any workarounds?



Hi Olavi,

I have worked with the code snippet shared by you and have been able to observe the issue shared while moving the group shape. An issue with ID SLIDESNET-33254 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be automatically notified once the issue will be resolved.

We are sorry for your inconvenience,

The issues you have found earlier (filed as SLIDESNET-33254) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.