【发布时间】:2015-03-30 10:53:45
【问题描述】:
我正在查看从 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 serialize shape object and save it for later use.
}
}
}
}
【问题讨论】:
-
我没有在代码中看到任何用于保存/序列化形状的代码。您尝试使用什么代码?
标签: c# vsto powerpoint