0
我在幻燈片創建簡單的形狀,添加形狀到類別中自定義任務窗格在PowerPoint現在我想保存這些保存到類和顯示自定義任務窗格如何創建形狀,並使用辦公室的Interop
目前我跟蹤了選擇的形狀,但在自定義任務窗格中沒有得到的想法如何保存和展示 代碼:
//Microsoft.Office.Interop.PowerPoint;
PowerPoint.Slide currentSlide = Globals.ThisAddIn.Application.ActiveWindow.View.Slide;
if (currentSlide != null)
{
var selection = Globals.ThisAddIn.Application.ActiveWindow.Selection;
if (selection.ShapeRange != null)
{
var shapecount = selection.ShapeRange.Count;
if (shapecount > 0)
{
for (int i = 1; i <= shapecount; i++)
{
var shape = selection.ShapeRange[i];
//want to save and load shape in Custom task pane for later use.
}
}
}
}
我已經使用Microsoft.Office.Interop.PowerPoint命名空間,要載入和保存幻燈片這樣形成的形狀
我想在自定義側窗格中顯示選定的形狀 –