AddZoomFrame
Inhalt
[
Ausblenden
]AddZoomFrame(float, float, float, float, ISlide)
Fügt ein neues Zoom-Objekt am Ende einer Sammlung hinzu.
public IZoomFrame AddZoomFrame(float x, float y, float width, float height, ISlide slide)
Parameter | Typ | Beschreibung |
---|---|---|
x | Single | X-Koordinate eines neuen Zoom-Frames Single. |
y | Single | Y-Koordinate eines neuen Zoom-Frames Single. |
width | Single | Breite eines neuen Zoom-Frames Single. |
height | Single | Höhe eines neuen Zoom-Frames Single. |
slide | ISlide | Das Folienobjekt, auf das sich der Zoom-Frame bezieht ISlide . |
Rückgabewert
Erstellt das Zoom-Objekt IZoomFrame
.
Ausnahmen
Ausnahme | Bedingung |
---|---|
ArgumentException | Die referenzierte Folie gehört nicht zur aktuellen Präsentation. |
Beispiele
Dieses Beispiel zeigt, wie man ein Zoom-Objekt am Ende einer Sammlung hinzufügt (angenommen, dass es mindestens zwei Folien in der Präsentation “Presentation.pptx” gibt):
[C#]
using (Presentation pres = new Presentation("Presentation.pptx"))
{
IZoomFrame zoomFrame = pres.Slides[0].Shapes.AddZoomFrame(150, 20, 50, 50, pres.Slides[1]);
}
Siehe auch
- Schnittstelle IZoomFrame
- Schnittstelle ISlide
- Klasse ShapeCollection
- Namespace Aspose.Slides
- Assembly Aspose.Slides
AddZoomFrame(float, float, float, float, ISlide, IPPImage)
Fügt ein neues Zoom-Objekt am Ende einer Sammlung hinzu.
public IZoomFrame AddZoomFrame(float x, float y, float width, float height, ISlide slide,
IPPImage image)
Parameter | Typ | Beschreibung |
---|---|---|
x | Single | X-Koordinate eines neuen Zoom-Frames Single. |
y | Single | Y-Koordinate eines neuen Zoom-Frames Single. |
width | Single | Breite eines neuen Zoom-Frames Single. |
height | Single | Höhe eines neuen Zoom-Frames Single. |
slide | ISlide | Das Folienobjekt, auf das sich der Zoom-Frame bezieht ISlide . |
image | IPPImage | Das Bild für die referenzierte Folie IPPImage |
Rückgabewert
Erstellt das Zoom-Objekt IZoomFrame
.
Ausnahmen
Ausnahme | Bedingung |
---|---|
ArgumentException | Die referenzierte Folie gehört nicht zur aktuellen Präsentation. |
Beispiele
Dieses Beispiel zeigt, wie man ein Zoom-Objekt am Ende einer Sammlung hinzufügt (angenommen, dass es mindestens zwei Folien in der Präsentation “Presentation.pptx” gibt):
[C#]
using (Presentation pres = new Presentation("Presentation.pptx"))
{
IPPImage image = pres.Images.AddImage(Image.FromFile("image.png"));
IZoomFrame zoomFrame = pres.Slides[0].Shapes.AddZoomFrame(150, 20, 50, 50, pres.Slides[1], image);
}
Siehe auch
- Schnittstelle IZoomFrame
- Schnittstelle ISlide
- Schnittstelle IPPImage
- Klasse ShapeCollection
- Namespace Aspose.Slides
- Assembly Aspose.Slides