AddSectionZoomFrame

AddSectionZoomFrame(float, float, float, float, ISection)

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

public ISectionZoomFrame AddSectionZoomFrame(float x, float y, float width, float height, 
    ISection section)
ParameterTypeDescription
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 section 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 adding a Section Zoom object to the end 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.AddSectionZoomFrame(150, 20, 50, 50, pres.Sections[1]);
}

See Also


AddSectionZoomFrame(float, float, float, float, ISection, IPPImage)

Adds a new Section Zoom object to the end of a collection with a predefined image.

public ISectionZoomFrame AddSectionZoomFrame(float x, float y, float width, float height, 
    ISection section, IPPImage image)
ParameterTypeDescription
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 section 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 adding a Section Zoom object to the end 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.AddSectionZoomFrame(150, 20, 50, 50, pres.Sections[1], image);
}

See Also