InsertSummaryZoomFrame

IShapeCollection.InsertSummaryZoomFrame 方法

创建一个新的摘要缩放对象,并将其插入到指定索引的集合中。

public ISummaryZoomFrame InsertSummaryZoomFrame(int index, float x, float y, float width, 
    float height)
参数类型描述
indexInt32应该插入节缩放帧的零基索引。
xSingle新节缩放帧的 X 坐标。
ySingle新节缩放帧的 Y 坐标。
widthSingle新节缩放帧的宽度。
heightSingle新节缩放帧的高度。

返回值

创建的摘要缩放对象 ISummaryZoomFrame

异常

异常条件
PptxEditException演示文稿中没有节,或者目标幻灯片不属于任何节。

备注

此方法创建一个新的摘要缩放,并为此演示文稿中的所有节放入一个对象集合。

示例

此示例演示如何在集合的指定索引处创建并插入一个摘要缩放对象(假设在“Presentation.pptx”演示文稿中至少有两个节):

[C#]
using (Presentation pres = new Presentation("Presentation.pptx"))
{
    ISummaryZoomFrame zoomFrame = pres.Slides[0].Shapes.InsertSummaryZoomFrame(2, 150, 20, 50, 50);
}

另见