Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要使用 interop 和 c# 获取 PowerPoint 演示文稿(2007 和 2010)中的所有 GIF 图片,但是 shape.PictureFormat.GetType() 不包含任何有用的信息,知道吗?
当用户添加图像时,原始文件名(带扩展名)默认保存为形状“替代文本”(右键单击形状/大小和位置/替代文本)。
但是用户可以更改它,因此对于某些图像,您可能没有数据。
相反,如果您可以控制图像插入,则可以将该信息存储到特定的 shape.tag 属性中,然后稍后再读取。