AddZoomFrame
内容
[
隐藏
]AddZoomFrame(float, float, float, float, ISlide)
向集合的末尾添加一个新的 Zoom 对象。
public IZoomFrame AddZoomFrame(float x, float y, float width, float height, ISlide slide)
参数 | 类型 | 描述 |
---|---|---|
x | Single | 新的 Zoom 框的 X 坐标 Single。 |
y | Single | 新的 Zoom 框的 Y 坐标 Single。 |
width | Single | 新的 Zoom 框的宽度 Single。 |
height | Single | 新的 Zoom 框的高度 Single。 |
slide | ISlide | 被 Zoom 框引用的幻灯片对象 ISlide 。 |
返回值
创建的 Zoom 对象 IZoomFrame
。
异常
异常 | 条件 |
---|---|
ArgumentException | 引用的幻灯片不属于当前演示文稿。 |
示例
此示例演示如何将 Zoom 对象添加到集合的末尾(假设“Presentation.pptx”演示文稿中至少有两张幻灯片):
[C#]
using (Presentation pres = new Presentation("Presentation.pptx"))
{
IZoomFrame zoomFrame = pres.Slides[0].Shapes.AddZoomFrame(150, 20, 50, 50, pres.Slides[1]);
}
另请参阅
- interface IZoomFrame
- interface ISlide
- interface IShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
AddZoomFrame(float, float, float, float, ISlide, IPPImage)
向集合的末尾添加一个新的 Zoom 对象。
public IZoomFrame AddZoomFrame(float x, float y, float width, float height, ISlide slide,
IPPImage image)
参数 | 类型 | 描述 |
---|---|---|
x | Single | 新的 Zoom 框的 X 坐标 Single。 |
y | Single | 新的 Zoom 框的 Y 坐标 Single。 |
width | Single | 新的 Zoom 框的宽度 Single。 |
height | Single | 新的 Zoom 框的高度 Single。 |
slide | ISlide | 被 Zoom 框引用的幻灯片对象 ISlide 。 |
image | IPPImage | 被引用幻灯片的图像 IPPImage |
返回值
创建的 Zoom 对象 IZoomFrame
。
异常
异常 | 条件 |
---|---|
ArgumentException | 引用的幻灯片不属于当前演示文稿。 |
示例
此示例演示如何将 Zoom 对象添加到集合的末尾(假设“Presentation.pptx”演示文稿中至少有两张幻灯片):
[C#]
using (Presentation pres = new Presentation("Presentation.pptx"))
{
IPPImage image = pres.Images.AddImage(Image.FromFile("image.png"));
IZoomFrame zoomFrame = pres.Slides[0].Shapes.AddZoomFrame(150, 20, 50, 50, pres.Slides[1], image);
}
另请参阅
- interface IZoomFrame
- interface ISlide
- interface IPPImage
- interface IShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides