InsertSectionZoomFrame
Contenu
[
Cacher
]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ètre | Type | Description |
---|---|---|
index | Int32 | L’index basé sur zéro où le cadre Section Zoom doit être inséré. |
x | Single | Coordonnée X d’un nouveau cadre Section Zoom Single. |
y | Single | Coordonnée Y d’un nouveau cadre Section Zoom Single. |
width | Single | Largeur d’un nouveau cadre Section Zoom Single. |
height | Single | Hauteur d’un nouveau cadre Section Zoom Single. |
section | ISection | L’objet diapositive référencé par le cadre Section Zoom ISection . |
Valeur de retour
Objet Section Zoom créé ISectionZoomFrame
.
Exceptions
exception | condition |
---|---|
ArgumentException | La 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
- interface ISectionZoomFrame
- interface ISection
- class ShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
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ètre | Type | Description |
---|---|---|
index | Int32 | L’index basé sur zéro où le cadre Section Zoom doit être inséré. |
x | Single | Coordonnée X d’un nouveau cadre Section Zoom Single. |
y | Single | Coordonnée Y d’un nouveau cadre Section Zoom Single. |
width | Single | Largeur d’un nouveau cadre Section Zoom Single. |
height | Single | Hauteur d’un nouveau cadre Section Zoom Single. |
section | ISection | L’objet diapositive référencé par le cadre Section Zoom ISection . |
image | IPPImage | L’image pour la diapositive référencée IPPImage |
Valeur de retour
Objet Section Zoom créé ISectionZoomFrame
.
Exceptions
exception | condition |
---|---|
ArgumentException | La 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
- interface ISectionZoomFrame
- interface ISection
- interface IPPImage
- class ShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides