AddSummaryZoomFrame
ShapeCollection.AddSummaryZoomFrame 方法
在集合的末尾添加一个新的 Summary Zoom 对象。
public ISummaryZoomFrame AddSummaryZoomFrame(float x, float y, float width, float height)
参数 | 类型 | 描述 |
---|---|---|
x | Single | 新的 Section Zoom 帧的 X 坐标 Single。 |
y | Single | 新的 Section Zoom 帧的 Y 坐标 Single。 |
width | Single | 新的 Section Zoom 帧的宽度 Single。 |
height | Single | 新的 Section Zoom 帧的高度 Single。 |
返回值
创建的 Summary Zoom 对象 ISummaryZoomFrame
。
异常
异常 | 条件 |
---|---|
PptxEditException | 演示文稿中没有节,或者目标幻灯片不属于任何节。 |
备注
此方法创建一个新的 Summary Zoom,并将所有 Sections 的对象集合放入其中。
示例
此示例演示了如何在集合的末尾添加一个 Summary Zoom 对象(假设 “Presentation.pptx” 演示文稿中至少有两个节):
[C#]
using (Presentation pres = new Presentation("Presentation.pptx"))
{
ISummaryZoomFrame zoomFrame = pres.Slides[0].Shapes.AddSummaryZoomFrame(150, 20, 500, 250);
}