AddSectionZoomFrame
内容
[
隐藏
]AddSectionZoomFrame(float, float, float, float, ISection)
将新的部分缩放对象添加到集合的末尾。
public ISectionZoomFrame AddSectionZoomFrame(float x, float y, float width, float height,
ISection section)
参数 | 类型 | 描述 |
---|---|---|
x | 单精度浮点数 | 新的部分缩放框的 X 坐标单精度浮点数。 |
y | 单精度浮点数 | 新的部分缩放框的 Y 坐标单精度浮点数。 |
width | 单精度浮点数 | 新的部分缩放框的宽度单精度浮点数。 |
height | 单精度浮点数 | 新的部分缩放框的高度单精度浮点数。 |
section | ISection | 被部分缩放框引用的部分对象 ISection 。 |
返回值
创建的部分缩放对象 ISectionZoomFrame
。
异常
异常 | 条件 |
---|---|
ArgumentException | 引用的部分不属于当前演示文稿或不包含任何幻灯片。 |
示例
此示例演示如何将部分缩放对象添加到集合的末尾(假设“Presentation.pptx”演示文稿中至少有两个部分):
[C#]
using (Presentation pres = new Presentation("Presentation.pptx"))
{
ISectionZoomFrame zoomFrame = pres.Slides[0].Shapes.AddSectionZoomFrame(150, 20, 50, 50, pres.Sections[1]);
}
另请参阅
- interface ISectionZoomFrame
- interface ISection
- class ShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
AddSectionZoomFrame(float, float, float, float, ISection, IPPImage)
使用预定义图像将新的部分缩放对象添加到集合的末尾。
public ISectionZoomFrame AddSectionZoomFrame(float x, float y, float width, float height,
ISection section, IPPImage image)
参数 | 类型 | 描述 |
---|---|---|
x | 单精度浮点数 | 新的部分缩放框的 X 坐标单精度浮点数。 |
y | 单精度浮点数 | 新的部分缩放框的 Y 坐标单精度浮点数。 |
width | 单精度浮点数 | 新的部分缩放框的宽度单精度浮点数。 |
height | 单精度浮点数 | 新的部分缩放框的高度单精度浮点数。 |
section | ISection | 被部分缩放框引用的部分对象 ISection 。 |
image | IPPImage | 被引用幻灯片的图像 IPPImage |
返回值
创建的部分缩放对象 ISectionZoomFrame
。
异常
异常 | 条件 |
---|---|
ArgumentException | 引用的部分不属于当前演示文稿或不包含任何幻灯片。 |
示例
此示例演示如何将部分缩放对象添加到集合的末尾(假设“Presentation.pptx”演示文稿中至少有两个部分):
[C#]
using (Presentation pres = new Presentation("Presentation.pptx"))
{
IPPImage image = pres.Images.AddImage(Image.FromFile("image.png"));
ISectionZoomFrame zoomFrame = pres.Slides[0].Shapes.AddSectionZoomFrame(150, 20, 50, 50, pres.Sections[1], image);
}
另请参阅
- interface ISectionZoomFrame
- interface ISection
- interface IPPImage
- class ShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides