2010-12-16から1日間の記事一覧

編集中のプレゼンテーション、スライドを取得する

using PowerPoint = Microsoft.Office.Interop.PowerPoint; public partial class ThisAddIn { PowerPoint.Presentation GetActivePresentation() { return this.Application.ActivePresentation; } PowerPoint.Slide GetActiveSlide() { return this.Applic…

選択中のスライド、シェイプを取得する

using PowerPoint = Microsoft.Office.Interop.PowerPoint; public partial class ThisAddIn { PowerPoint.Selection GetSelection() { try { return this.Application.ActiveWindow.Selection; } catch (System.Runtime.InteropServices.COMException exc) …