InsertSummaryZoomFrame
ShapeCollection.InsertSummaryZoomFrame 方法
创建一个新的摘要缩放对象并将其插入到指定索引的集合中。
public ISummaryZoomFrame InsertSummaryZoomFrame(int index, float x, float y, float width,
float height)
参数 | 类型 | 描述 |
---|---|---|
index | Int32 | 要插入的 Section Zoom 框的零基索引。 |
x | Single | 新的 Section Zoom 框的 X 坐标。 |
y | Single | 新的 Section Zoom 框的 Y 坐标。 |
width | Single | 新的 Section Zoom 框的宽度。 |
height | Single | 新的 Section Zoom 框的高度。 |
返回值
创建的摘要缩放对象 ISummaryZoomFrame
。
异常
异常 | 条件 |
---|---|
PptxEditException | 演示文稿中没有节,或目标幻灯片不属于任何节。 |
备注
此方法创建一个新的摘要缩放并将该演示文稿中所有节的对象集合放入其中。
示例
此示例演示了在集合的指定索引处创建和插入摘要缩放对象(假设 “Presentation.pptx” 演示文稿中至少有两个节):
[C#]
using (Presentation pres = new Presentation("Presentation.pptx"))
{
ISummaryZoomFrame zoomFrame = pres.Slides[0].Shapes.InsertSummaryZoomFrame(2, 150, 20, 50, 50);
}