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. |
y | Single | Y-Koordinate eines neuen Zoom-Frames. |
width | Single | Breite eines neuen Zoom-Frames. |
height | Single | Höhe eines neuen Zoom-Frames. |
slide | ISlide | Das Folienobjekt, auf das der Zoom-Frame verweist ISlide . |
Rückgabewert
Erstelltes Zoom-Objekt IZoomFrame
.
Ausnahmen
Ausnahme | Bedingung |
---|---|
ArgumentException | Die referenzierte Folie gehört nicht zur aktuellen Präsentation. |
Beispiele
Dieses Beispiel zeigt, wie ein Zoom-Objekt am Ende einer Sammlung hinzugefügt wird (nehmen Sie an, dass sich mindestens zwei Folien in der Präsentation “Presentation.pptx” befinden):
[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
- Schnittstelle IShapeCollection
- 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. |
y | Single | Y-Koordinate eines neuen Zoom-Frames. |
width | Single | Breite eines neuen Zoom-Frames. |
height | Single | Höhe eines neuen Zoom-Frames. |
slide | ISlide | Das Folienobjekt, auf das der Zoom-Frame verweist ISlide . |
image | IPPImage | Das Bild für die referenzierte Folie IPPImage |
Rückgabewert
Erstelltes Zoom-Objekt IZoomFrame
.
Ausnahmen
Ausnahme | Bedingung |
---|---|
ArgumentException | Die referenzierte Folie gehört nicht zur aktuellen Präsentation. |
Beispiele
Dieses Beispiel zeigt, wie ein Zoom-Objekt am Ende einer Sammlung hinzugefügt wird (nehmen Sie an, dass sich mindestens zwei Folien in der Präsentation “Presentation.pptx” befinden):
[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
- Schnittstelle IShapeCollection
- Namespace Aspose.Slides
- Assembly Aspose.Slides