InsertSectionZoomFrame
内容
[
隐藏
]InsertSectionZoomFrame(int, float, float, float, float, ISection)
创建一个新的 Section Zoom 对象并插入到指定索引的集合中。
public ISectionZoomFrame InsertSectionZoomFrame(int index, float x, float y, float width,
float height, ISection section)
参数 | 类型 | 描述 |
---|---|---|
index | Int32 | Section Zoom 框架应插入的零基索引。 |
x | Single | 新的 Section Zoom 框架的 X 坐标。 |
y | Single | 新的 Section Zoom 框架的 Y 坐标。 |
width | Single | 新的 Section Zoom 框架的宽度。 |
height | Single | 新的 Section Zoom 框架的高度。 |
section | ISection | Section Zoom 框架引用的幻灯片对象 ISection 。 |
返回值
创建的 Section Zoom 对象 ISectionZoomFrame
。
异常
异常 | 条件 |
---|---|
ArgumentException | 引用的部分不属于当前演示文稿或不包含任何幻灯片。 |
示例
此示例演示如何创建并将 Section Zoom 对象插入到集合的指定索引中(假设 “Presentation.pptx” 演示文稿中至少有两个部分):
[C#]
using (Presentation pres = new Presentation("Presentation.pptx"))
{
ISectionZoomFrame zoomFrame = pres.Slides[0].Shapes.InsertSectionZoomFrame(2, 150, 20, 50, 50, pres.Sections[1]);
}
参见
- interface ISectionZoomFrame
- interface ISection
- class ShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
InsertSectionZoomFrame(int, float, float, float, float, ISection, IPPImage)
创建一个新的 Section Zoom 对象并将其插入到指定索引的集合中。
public ISectionZoomFrame InsertSectionZoomFrame(int index, float x, float y, float width,
float height, ISection section, IPPImage image)
参数 | 类型 | 描述 |
---|---|---|
index | Int32 | Section Zoom 框架应插入的零基索引。 |
x | Single | 新的 Section Zoom 框架的 X 坐标。 |
y | Single | 新的 Section Zoom 框架的 Y 坐标。 |
width | Single | 新的 Section Zoom 框架的宽度。 |
height | Single | 新的 Section Zoom 框架的高度。 |
section | ISection | Section Zoom 框架引用的幻灯片对象 ISection 。 |
image | IPPImage | 引用幻灯片的图像 IPPImage |
返回值
创建的 Section Zoom 对象 ISectionZoomFrame
。
异常
异常 | 条件 |
---|---|
ArgumentException | 引用的部分不属于当前演示文稿或不包含任何幻灯片。 |
示例
此示例演示如何创建并将 Section Zoom 对象插入到集合的指定索引中(假设 “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.InsertSectionZoomFrame(2, 150, 20, 50, 50, pres.Sections[1], image);
}
参见
- interface ISectionZoomFrame
- interface ISection
- interface IPPImage
- class ShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides