I assume that you have created a PowerPoint add-in project (2007/2010) in VisualStudio. In general, you can access the active view with the static Globals class as follows:
Globals.ThisAddIn.Application.ActivePresentation.Slides[slideIndex] ...
Edit: Usage example:
using PowerPoint = Microsoft.Office.Interop.PowerPoint; ... try { int numberOfSlides = Globals.ThisAddIn .Application.ActivePresentation.Slides.Count; if (numberOfSlides > 0) {
source share