Set PictureFrame Or Shape to "Send To Back"

Can anyone help me how to set a picture frame shape “Send To Back” ?


Aspose team,

The documentation and API reference is inefficient in providing details. This is the third post from me. If things have changed from version to version. you should also have updated the documentation.

Thanks
Prakash

Hi Prakash,

I like to share that Aspose.Slides offer shape reordering support to set ordering of shapes. Please visit this thread link for your kind reference in this regard.

Many Thanks,

Mudassir,


I get this error when i am trying to access thread link you have mentioned above.

Access Denied

You do not have permissions to perform the requested action.

Hi Prakash,

Please try using the following sample code on your end to serve the purpose.

public static void ReplaceImage()
{
String path = “D:\Aspose Data\”;
Presentation pres = new Presentation(path + “CREWTestMikko.pptx”);

Slide slide = (Slide)pres.Slides[1];


IShape shape = slide.Shapes[0];

//Setting pic frame behind
slide.Shapes.Reorder(0, shape );

pres.Write(path + “3.pptx”);


}

Many Thanks,

Thanks for your help. The approach you suggested works.