InsertSectionZoomFrame

InsertSectionZoomFrame(int, float, float, float, float, ISection)

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

public ISectionZoomFrame InsertSectionZoomFrame(int index, float x, float y, float width, 
    float height, ISection section)
ParameterTypeDescription
indexInt32The zero-based index at which Section Zoom frame should be inserted.
xSingleX coordinate of a new Section Zoom frame Single.
ySingleY coordinate of a new Section Zoom frame Single.
widthSingleWidth of a new Section Zoom frame Single.
heightSingleHeight of a new Section Zoom frame Single.
sectionISectionThe slide object referenced by the Section Zoom frame ISection.

Return Value

Created Section Zoom object ISectionZoomFrame.

Exceptions

exceptioncondition
ArgumentExceptionReferenced section does not belong to the current presentation or does not contains any slides.

Examples

This example demonstrates the creation and inserting a Section Zoom object at the specified index 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.InsertSectionZoomFrame(2, 150, 20, 50, 50, pres.Sections[1]);
}

See Also


InsertSectionZoomFrame(int, float, float, float, float, ISection, IPPImage)

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

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

Return Value

Created Section Zoom object ISectionZoomFrame.

Exceptions

exceptioncondition
ArgumentExceptionReferenced section does not belong to the current presentation or does not contains any slides.

Examples

This example demonstrates the creation and inserting a Section Zoom object at the specified index 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.InsertSectionZoomFrame(2, 150, 20, 50, 50, pres.Sections[1], image);
}

See Also