AddSectionZoomFrame
Contents
[
Hide
]AddSectionZoomFrame(float, float, float, float, ISection)
Creates a new Section Zoom frame and adds it to the end of the shape collection.
public ISectionZoomFrame AddSectionZoomFrame(float x, float y, float width, float height,
ISection section)
Parameter | Type | Description |
---|---|---|
x | Single | The x-coordinate of the new Section Zoom frame, in points. |
y | Single | The y-coordinate of the new Section Zoom frame, in points. |
width | Single | The width of the new Section Zoom frame, in points. |
height | Single | The height of the new Section Zoom frame, in points. |
section | ISection | The ISection referenced by the Section Zoom frame; must belong to this presentation and contain at least one slide. |
Return Value
The newly created ISectionZoomFrame
.
Exceptions
exception | condition |
---|---|
ArgumentException | Thrown if the referenced section does not belong to the current presentation or contains no slides. |
Examples
This example demonstrates adding a Section Zoom object to the end of a collection (assume that there are at least two sections in the “Presentation.pptx” presentation):
[C#]
using (Presentation pres = new Presentation("Presentation.pptx"))
{
ISectionZoomFrame zoomFrame = pres.Slides[0].Shapes.AddSectionZoomFrame(150, 20, 50, 50, pres.Sections[1]);
}
See Also
- interface ISectionZoomFrame
- interface ISection
- class ShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
AddSectionZoomFrame(float, float, float, float, ISection, IPPImage)
Creates a new Section Zoom frame with a predefined image and adds it to the end of the shape collection.
public ISectionZoomFrame AddSectionZoomFrame(float x, float y, float width, float height,
ISection section, IPPImage image)
Parameter | Type | Description |
---|---|---|
x | Single | The x-coordinate of the new Section Zoom frame, in points. |
y | Single | The y-coordinate of the new Section Zoom frame, in points. |
width | Single | The width of the new Section Zoom frame, in points. |
height | Single | The height of the new Section Zoom frame, in points. |
section | ISection | The ISection referenced by the Section Zoom frame; must belong to this presentation and contain at least one slide. |
image | IPPImage | The IPPImage to display within the Section Zoom frame. |
Return Value
The newly created ISectionZoomFrame
.
Exceptions
exception | condition |
---|---|
ArgumentException | Thrown if the referenced section does not belong to the current presentation or contains no slides. |
Examples
This example demonstrates adding a Section Zoom object to the end of a collection (assume that there are at least two sections in the “Presentation.pptx” presentation):
[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);
}
See Also
- interface ISectionZoomFrame
- interface ISection
- interface IPPImage
- class ShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides