如何确定 msoPlaceholder 是否为图片?

How can I determine if a msoPlaceholder is a picture?

我有一个案例 (PowerPoint COM API),其中 Shape.Type == msoPlaceholder。形状是图片。如何验证是不是图片?

您可以使用 ContainedType

例如对于 msoChart

oplc.PlaceholderFormat.ContainedType = msoChart (will return True / False)

根据此处的文档 https://docs.microsoft.com/en-us/office/vba/api/powerpoint.placeholderformat.containedtype