編集中のプレゼンテーション、スライドを取得する
using PowerPoint = Microsoft.Office.Interop.PowerPoint; public partial class ThisAddIn { PowerPoint.Presentation GetActivePresentation() { return this.Application.ActivePresentation; } PowerPoint.Slide GetActiveSlide() { return this.Application.ActiveWindow.View.Slide as PowerPoint.Slide; } : }