InsertSectionZoomFrame

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

Crée un nouvel objet Section Zoom et l’insère dans une collection à l’index spécifié.

public ISectionZoomFrame InsertSectionZoomFrame(int index, float x, float y, float width, 
    float height, ISection section)
ParamètreTypeDescription
indexInt32L’index basé sur zéro où le cadre Section Zoom doit être inséré.
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 diapositive 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 aucune diapositive.

Exemples

Cet exemple démontre la création et l’insertion d’un objet Section Zoom à l’index spécifié 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.InsertSectionZoomFrame(2, 150, 20, 50, 50, pres.Sections[1]);
}

Voir aussi


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

Crée un nouvel objet Section Zoom et l’insère dans une collection à l’index spécifié.

public ISectionZoomFrame InsertSectionZoomFrame(int index, float x, float y, float width, 
    float height, ISection section, IPPImage image)
ParamètreTypeDescription
indexInt32L’index basé sur zéro où le cadre Section Zoom doit être inséré.
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 diapositive 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 aucune diapositive.

Exemples

Cet exemple démontre la création et l’insertion d’un objet Section Zoom à l’index spécifié 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.InsertSectionZoomFrame(2, 150, 20, 50, 50, pres.Sections[1], image);
}

Voir aussi