InsertZoomFrame

InsertZoomFrame(int, float, float, float, float, ISlide)

Creates a new Zoom object and inserts it to a collection at the specified index.

public IZoomFrame InsertZoomFrame(int index, float x, float y, float width, float height, 
    ISlide slide)
ParameterTypeDescription
indexInt32The zero-based index at which Zoom frame should be inserted.
xSingleX coordinate of a new Zoom frame Single.
ySingleY coordinate of a new Zoom frame Single.
widthSingleWidth of a new Zoom frame Single.
heightSingleHeight of a new Zoom frame Single.
slideISlideThe slide object referenced by the Zoom frame ISlide.

Return Value

Created Zoom object IZoomFrame.

Exceptions

exceptioncondition
ArgumentExceptionReferenced 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


InsertZoomFrame(int, float, float, float, float, ISlide, IPPImage)

Creates a new Zoom object and inserts it to a collection at the specified index.

public IZoomFrame InsertZoomFrame(int index, float x, float y, float width, float height, 
    ISlide slide, IPPImage image)
ParameterTypeDescription
indexInt32The zero-based index at which Zoom frame should be inserted.
xSingleX coordinate of a new Zoom frame Single.
ySingleY coordinate of a new Zoom frame Single.
widthSingleWidth of a new Zoom frame Single.
heightSingleHeight of a new Zoom frame Single.
slideISlideThe slide object referenced by the Zoom frame ISlide.
imageIPPImageThe image for the referenced slide IPPImage

Return Value

Created Zoom object IZoomFrame.

Exceptions

exceptioncondition
ArgumentExceptionReferenced 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