InsertSummaryZoomFrame
IShapeCollection.InsertSummaryZoomFrame 方法
创建一个新的摘要缩放对象,并将其插入到指定索引的集合中。
public ISummaryZoomFrame InsertSummaryZoomFrame(int index, float x, float y, float width,
float height)
参数 | 类型 | 描述 |
---|---|---|
index | Int32 | 应该插入节缩放帧的零基索引。 |
x | Single | 新节缩放帧的 X 坐标。 |
y | Single | 新节缩放帧的 Y 坐标。 |
width | Single | 新节缩放帧的宽度。 |
height | 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);
}
另见
- 接口 ISummaryZoomFrame
- 接口 IShapeCollection
- 命名空间 Aspose.Slides
- 程序集 Aspose.Slides