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 auquel le cadre Section Zoom doit être inséré.
xSingleCoordonnée X d’un nouveau cadre Section Zoom.
ySingleCoordonnée Y d’un nouveau cadre Section Zoom.
widthSingleLargeur d’un nouveau cadre Section Zoom.
heightSingleHauteur d’un nouveau cadre Section Zoom.
sectionISectionL’objet de 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 pas de diapositives.

Exemples

Cet exemple illustre 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 auquel le cadre Section Zoom doit être inséré.
xSingleCoordonnée X d’un nouveau cadre Section Zoom.
ySingleCoordonnée Y d’un nouveau cadre Section Zoom.
widthSingleLargeur d’un nouveau cadre Section Zoom.
heightSingleHauteur d’un nouveau cadre Section Zoom.
sectionISectionL’objet de 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 pas de diapositives.

Exemples

Cet exemple illustre 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