Hello
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?
BR
Olavi