InsertZoomFrame
Contents
[
Hide
]InsertZoomFrame(int, float, float, float, float, ISlide)
Creates a new Zoom frame and inserts it into the shape collection at the specified index.
public IZoomFrame InsertZoomFrame(int index, float x, float y, float width, float height,
ISlide slide)
Parameter | Type | Description |
---|---|---|
index | Int32 | The zero-based index at which to insert the Zoom frame. |
x | Single | The x-coordinate of the new Zoom frame, in points. |
y | Single | The y-coordinate of the new Zoom frame, in points. |
width | Single | The width of the new Zoom frame, in points. |
height | Single | The height of the new Zoom frame, in points. |
slide | ISlide | The ISlide referenced by the Zoom frame. |
Return Value
The newly created IZoomFrame
.
Exceptions
exception | condition |
---|---|
ArgumentException | Thrown if the referenced slide does not belong to the current presentation. |
Examples
This example demonstrates creation and inserting a Zoom object at the specified index of a collection (assume that there are at least two slides in the “Presentation.pptx” presentation):
[C#]
using (Presentation pres = new Presentation("Presentation.pptx"))
{
IZoomFrame zoomFrame = pres.Slides[0].Shapes.InsertZoomFrame(2, 150, 20, 50, 50, pres.Slides[1]);
}
See Also
- interface IZoomFrame
- interface ISlide
- interface IShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
InsertZoomFrame(int, float, float, float, float, ISlide, IPPImage)
Creates a new Zoom frame with a predefined image and inserts it into the shape collection at the specified index.
public IZoomFrame InsertZoomFrame(int index, float x, float y, float width, float height,
ISlide slide, IPPImage image)
Parameter | Type | Description |
---|---|---|
index | Int32 | The zero-based index at which to insert the Zoom frame. |
x | Single | The x-coordinate of the new Zoom frame, in points. |
y | Single | The y-coordinate of the new Zoom frame, in points. |
width | Single | The width of the new Zoom frame, in points. |
height | Single | The height of the new Zoom frame, in points. |
slide | ISlide | The ISlide referenced by the Zoom frame. |
image | IPPImage | The image for the referenced slide IPPImage . |
Return Value
The newly created IZoomFrame
.
Exceptions
exception | condition |
---|---|
ArgumentException | Thrown if the referenced slide does not belong to the current presentation. |
Examples
This example demonstrates creation and inserting a Zoom object at the specified index of a collection (assume that there are at least two slides in the “Presentation.pptx” presentation):
[C#]
using (Presentation pres = new Presentation("Presentation.pptx"))
{
IPPImage image = pres.Images.AddImage(Image.FromFile("image.png"));
IZoomFrame zoomFrame = pres.Slides[0].Shapes.InsertZoomFrame(2, 150, 20, 50, 50, pres.Slides[1], image);
}
See Also
- interface IZoomFrame
- interface ISlide
- interface IPPImage
- interface IShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides