Aspose.Slides Shape Type Definitions for PowerPoint Objects in Python

Hello - How can I get the definition for a slide_type attribute? Screenshot attached.

image.png (8.9 KB)

Resolved.

Is there a shape_type that can determine if a shape is an image or text?

@aspose-slides-master-001,
Thank you for posting the question.

To check the type of an object placed on a PowerPoint presentation slide, you can use the isinstance function like this:

if isinstance(shape, PictureFrame):
    # this is an image

Please let us know if this way does not work for you and describe the issue you are experiencing.

1 Like