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

Free Support Forum - aspose.com

Best way for identify each shape type that contain a slide

Hi,


I need find the best way for identify each shape type that contain a slide.

I need identify:

- Charts
- Rectangles
- Excel Embedded
- Images
- All types of objects from a slide.

Thanks for your help.

Hi John David,


I have observed your comments and like to request you to please try using below sample code for your kind reference.

Presentation
pres = new Presentation(@“D:\test.pptx”);<o:p></o:p>

foreach (ISlide slide in pres.Slides)

{

foreach (IShape shape in slide.Shapes)

{

Console.WriteLine(shape.GetType().ToString());

}

}


I hope this will be helpful. Please share if I may help you further in this regard.

best Regards,