InsertSummaryZoomFrame

IShapeCollection.InsertSummaryZoomFrame method

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

public ISummaryZoomFrame InsertSummaryZoomFrame(int index, float x, float y, float width, 
    float height)
范围类型描述
indexInt32零- 应插入截面缩放框架的索引。
xSingle新截面缩放框的 X 坐标Single。
ySingle新截面缩放框的 Y 坐标Single。
widthSingle新截面缩放框的宽度Single。
heightSingle新截面缩放框的高度Single。

返回值

创建摘要缩放对象ISummaryZoomFrame

例外

例外(健康)状况
PptxEditException演示文稿中没有部分,或者目标幻灯片不属于任何部分。

评论

此方法创建一个新的摘要缩放并将对象集合放入其中以用于所有部分这个演示文稿。

例子

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

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

也可以看看