AddSectionZoomFrame
Inhalt
[
Ausblenden
]AddSectionZoomFrame(float, float, float, float, ISection)
Fügt ein neues Section Zoom-Objekt am Ende einer Sammlung hinzu.
public ISectionZoomFrame AddSectionZoomFrame(float x, float y, float width, float height,
ISection section)
Parameter | Typ | Beschreibung |
---|---|---|
x | Single | X-Koordinate eines neuen Section Zoom-Frames. |
y | Single | Y-Koordinate eines neuen Section Zoom-Frames. |
width | Single | Breite eines neuen Section Zoom-Frames. |
height | Single | Höhe eines neuen Section Zoom-Frames. |
section | ISection | Das Abschnittsobjekt, auf das im Section Zoom-Frame verwiesen wird ISection . |
Rückgabewert
Erstelltes Section Zoom-Objekt ISectionZoomFrame
.
Ausnahmen
Ausnahme | Bedingung |
---|---|
ArgumentException | Das referenzierte Abschnitt gehört nicht zur aktuellen Präsentation oder enthält keine Folien. |
Beispiele
Dieses Beispiel zeigt, wie ein Section Zoom-Objekt am Ende einer Sammlung hinzugefügt wird (angenommen, es gibt mindestens zwei Abschnitte in der 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]);
}
Siehe auch
- Schnittstelle ISectionZoomFrame
- Schnittstelle ISection
- Klasse ShapeCollection
- Namespace Aspose.Slides
- Assembly Aspose.Slides
AddSectionZoomFrame(float, float, float, float, ISection, IPPImage)
Fügt ein neues Section Zoom-Objekt am Ende einer Sammlung mit einem vordefinierten Bild hinzu.
public ISectionZoomFrame AddSectionZoomFrame(float x, float y, float width, float height,
ISection section, IPPImage image)
Parameter | Typ | Beschreibung |
---|---|---|
x | Single | X-Koordinate eines neuen Section Zoom-Frames. |
y | Single | Y-Koordinate eines neuen Section Zoom-Frames. |
width | Single | Breite eines neuen Section Zoom-Frames. |
height | Single | Höhe eines neuen Section Zoom-Frames. |
section | ISection | Das Abschnittsobjekt, auf das im Section Zoom-Frame verwiesen wird ISection . |
image | IPPImage | Das Bild für die referenzierte Folie IPPImage |
Rückgabewert
Erstelltes Section Zoom-Objekt ISectionZoomFrame
.
Ausnahmen
Ausnahme | Bedingung |
---|---|
ArgumentException | Das referenzierte Abschnitt gehört nicht zur aktuellen Präsentation oder enthält keine Folien. |
Beispiele
Dieses Beispiel zeigt, wie ein Section Zoom-Objekt am Ende einer Sammlung hinzugefügt wird (angenommen, es gibt mindestens zwei Abschnitte in der 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);
}
Siehe auch
- Schnittstelle ISectionZoomFrame
- Schnittstelle ISection
- Schnittstelle IPPImage
- Klasse ShapeCollection
- Namespace Aspose.Slides
- Assembly Aspose.Slides