AddSectionZoomFrame
Contenu
[
Cacher
]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ètre | Type | Description |
---|---|---|
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 section 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 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
- interface ISectionZoomFrame
- interface ISection
- class ShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
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ètre | Type | Description |
---|---|---|
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 section 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 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
- interface ISectionZoomFrame
- interface ISection
- interface IPPImage
- class ShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides