简体   繁体   English

如何识别 PowerPoint 中的演示文稿?

[英]How to identify a presentation in PowerPoint?

Normally, to identify a shape in a slide, we use PowerPoint.Shape.Id通常,为了识别幻灯片中的形状,我们使用 PowerPoint.Shape.Id

to identify a slide in a presentation, we use PowerPoint.Slide.SlideId为了识别演示文稿中的幻灯片,我们使用 PowerPoint.Slide.SlideId

but I don't know how to identify a presentation in a PowerPoint application.但我不知道如何识别 PowerPoint 应用程序中的演示文稿。 Assume that we have a collection of presentation being opened, how can we identify a presentation in that collection?假设我们有一个正在打开的演示文稿集合,我们如何识别该集合中的演示文稿?

Thanks.谢谢。

The Application object has a Presentations collection. Application 对象有一个 Presentations 集合。 The Presentation objects in that collection have a .FullName property which includes the full path to the presentation, assuming it's been saved.该集合中的 Presentation 对象有一个 .FullName 属性,其中包括演示文稿的完整路径,假设它已被保存。

That would uniquely identify the presentation on a given system.这将唯一标识给定系统上的演示文稿。

Try use the Application.ActiveWindow Property.尝试使用Application.ActiveWindow属性。 I think this is probably what you are looking for?我想这可能是你要找的? I think the question needs to be more specific in what identifies which presentation you would like to return but this will put you on the right track.我认为问题需要更具体地说明您想返回哪个演示文稿,但这将使您走上正确的轨道。

More info here: http://msdn.microsoft.com/en-us/library/office/ff745295(v=office.15).aspx更多信息: http : //msdn.microsoft.com/en-us/library/office/ff745295(v=office.15).aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM