AddSectionZoomFrame
Contents
[
Hide
]AddSectionZoomFrame(float, float, float, float, ISection)
Adds a new Section Zoom object to the end of a collection.
public ISectionZoomFrame AddSectionZoomFrame(float x, float y, float width, float height,
ISection section)
Parameter | Type | Description |
---|---|---|
x | Single | X coordinate of a new Section Zoom frame Single. |
y | Single | Y coordinate of a new Section Zoom frame Single. |
width | Single | Width of a new Section Zoom frame Single. |
height | Single | Height of a new Section Zoom frame Single. |
section | ISection | The section object referenced by the Section Zoom frame ISection . |
Return Value
Created Section Zoom object ISectionZoomFrame
.
Exceptions
exception | condition |
---|---|
ArgumentException | Referenced section does not belong to the current presentation or does not contains any 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)
Adds a new Section Zoom object to the end of a collection with a predefined image.
public ISectionZoomFrame AddSectionZoomFrame(float x, float y, float width, float height,
ISection section, IPPImage image)
Parameter | Type | Description |
---|---|---|
x | Single | X coordinate of a new Section Zoom frame Single. |
y | Single | Y coordinate of a new Section Zoom frame Single. |
width | Single | Width of a new Section Zoom frame Single. |
height | Single | Height of a new Section Zoom frame Single. |
section | ISection | The section object referenced by the Section Zoom frame ISection . |
image | IPPImage | The image for the referenced slide IPPImage |
Return Value
Created Section Zoom object ISectionZoomFrame
.
Exceptions
exception | condition |
---|---|
ArgumentException | Referenced section does not belong to the current presentation or does not contains any 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