AddZoomFrame
Contents
[
Hide
]AddZoomFrame(float, float, float, float, ISlide)
Adds a new Zoom object to the end of a collection.
public IZoomFrame AddZoomFrame(float x, float y, float width, float height, ISlide slide)
| Parameter | Type | Description |
|---|---|---|
| x | Single | X coordinate of a new Zoom frame Single. |
| y | Single | Y coordinate of a new Zoom frame Single. |
| width | Single | Width of a new Zoom frame Single. |
| height | Single | Height of a new Zoom frame Single. |
| slide | ISlide | The slide object referenced by the Zoom frame ISlide. |
Return Value
Created Zoom object IZoomFrame.
Exceptions
| exception | condition |
|---|---|
| ArgumentException | Referenced slide does not belong to the current presentation. |
Examples
This example demonstrates adding a Zoom object to the end 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.AddZoomFrame(150, 20, 50, 50, pres.Slides[1]);
}
See Also
- interface IZoomFrame
- interface ISlide
- interface IShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
AddZoomFrame(float, float, float, float, ISlide, IPPImage)
Adds a new Zoom object to the end of a collection.
public IZoomFrame AddZoomFrame(float x, float y, float width, float height, ISlide slide,
IPPImage image)
| Parameter | Type | Description |
|---|---|---|
| x | Single | X coordinate of a new Zoom frame Single. |
| y | Single | Y coordinate of a new Zoom frame Single. |
| width | Single | Width of a new Zoom frame Single. |
| height | Single | Height of a new Zoom frame Single. |
| slide | ISlide | The slide object referenced by the Zoom frame ISlide. |
| image | IPPImage | The image for the referenced slide IPPImage |
Return Value
Created Zoom object IZoomFrame.
Exceptions
| exception | condition |
|---|---|
| ArgumentException | Referenced slide does not belong to the current presentation. |
Examples
This example demonstrates adding a Zoom object to the end 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.AddZoomFrame(150, 20, 50, 50, pres.Slides[1], image);
}
See Also
- interface IZoomFrame
- interface ISlide
- interface IPPImage
- interface IShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides