IShapeCollectionAddZoomFrame Method (Single, Single, Single, Single, ISlide)

Adds a new Zoom object to the end of a collection.

Namespace:  Aspose.Slides
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 21.11.0.0 (21.11)
Syntax
IZoomFrame AddZoomFrame(
	float x,
	float y,
	float width,
	float height,
	ISlide slide
)

Parameters

x
Type: SystemSingle
X coordinate of a new Zoom frame Single.
y
Type: SystemSingle
Y coordinate of a new Zoom frame Single.
width
Type: SystemSingle
Width of a new Zoom frame Single.
height
Type: SystemSingle
Height of a new Zoom frame Single.
slide
Type: Aspose.SlidesISlide
The slide object referenced by the Zoom frame ISlide.

Return Value

Type: IZoomFrame
Created Zoom object IZoomFrame.
Exceptions
ExceptionCondition
ArgumentExceptionReferenced 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