AddSectionZoomFrame

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

Ajoute un nouvel objet Section Zoom à la fin d’une collection.

public ISectionZoomFrame AddSectionZoomFrame(float x, float y, float width, float height, 
    ISection section)
ParamètreTypeDescription
xSingleCoordonnée X d’un nouveau cadre Section Zoom Single.
ySingleCoordonnée Y d’un nouveau cadre Section Zoom Single.
widthSingleLargeur d’un nouveau cadre Section Zoom Single.
heightSingleHauteur d’un nouveau cadre Section Zoom Single.
sectionISectionL’objet section référencé par le cadre Section Zoom ISection.

Valeur de retour

Objet Section Zoom créé ISectionZoomFrame.

Exceptions

exceptioncondition
ArgumentExceptionLa section référencée n’appartient pas à la présentation actuelle ou ne contient pas de diapositives.

Exemples

Cet exemple démontre l’ajout d’un objet Section Zoom à la fin d’une collection (supposons qu’il y ait au moins deux sections dans la présentation “Presentation.pptx”):

[C#]
using (Presentation pres = new Presentation("Presentation.pptx"))
{
    ISectionZoomFrame zoomFrame = pres.Slides[0].Shapes.AddSectionZoomFrame(150, 20, 50, 50, pres.Sections[1]);
}

Voir aussi


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

Ajoute un nouvel objet Section Zoom à la fin d’une collection avec une image prédéfinie.

public ISectionZoomFrame AddSectionZoomFrame(float x, float y, float width, float height, 
    ISection section, IPPImage image)
ParamètreTypeDescription
xSingleCoordonnée X d’un nouveau cadre Section Zoom Single.
ySingleCoordonnée Y d’un nouveau cadre Section Zoom Single.
widthSingleLargeur d’un nouveau cadre Section Zoom Single.
heightSingleHauteur d’un nouveau cadre Section Zoom Single.
sectionISectionL’objet section référencé par le cadre Section Zoom ISection.
imageIPPImageL’image pour la diapositive référencée IPPImage

Valeur de retour

Objet Section Zoom créé ISectionZoomFrame.

Exceptions

exceptioncondition
ArgumentExceptionLa section référencée n’appartient pas à la présentation actuelle ou ne contient pas de diapositives.

Exemples

Cet exemple démontre l’ajout d’un objet Section Zoom à la fin d’une collection (supposons qu’il y ait au moins deux sections dans la présentation “Presentation.pptx”):

[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);
}

Voir aussi