如何确定msoPlaceholder是否是图片?

时间:2019-04-18 01:41:27

标签: powerpoint office-interop

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

1 个答案:

答案 0 :(得分:1)

您可以使用ContainedType

例如一个msoChart

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

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

相关问题