Search code examples
c#vstopowerpointoffice-interopoffice-addins

How to identify a presentation in PowerPoint?


Normally, to identify a shape in a slide, we use PowerPoint.Shape.Id

to identify a slide in a presentation, we use PowerPoint.Slide.SlideId

but I don't know how to identify a presentation in a PowerPoint application. Assume that we have a collection of presentation being opened, how can we identify a presentation in that collection?

Thanks.


Solution

  • Try use the Application.ActiveWindow Property. 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