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