InsertSectionZoomFrame
Inhalt
[
Ausblenden
]InsertSectionZoomFrame(int, float, float, float, float, ISection)
Erstellt ein neues Section Zoom-Objekt und fügt es an der angegebenen Stelle in eine Sammlung ein.
public ISectionZoomFrame InsertSectionZoomFrame(int index, float x, float y, float width,
float height, ISection section)
| Parameter | Typ | Beschreibung |
|---|---|---|
| index | Int32 | Der nullbasierte Index, an dem das Section Zoom-Frame eingefügt werden soll. |
| x | Single | X-Koordinate eines neuen Section Zoom-Frames als Single. |
| y | Single | Y-Koordinate eines neuen Section Zoom-Frames als Single. |
| width | Single | Breite eines neuen Section Zoom-Frames als Single. |
| height | Single | Höhe eines neuen Section Zoom-Frames als Single. |
| section | ISection | Das Folienobjekt, auf das das Section Zoom-Frame verweist ISection. |
Rückgabewert
Erstelltes Section Zoom-Objekt ISectionZoomFrame.
Ausnahmen
| Ausnahme | Bedingung |
|---|---|
| ArgumentException | Die referenzierte Sektion gehört nicht zur aktuellen Präsentation oder enthält keine Folien. |
Beispiele
Dieses Beispiel zeigt die Erstellung und das Einfügen eines Section Zoom-Objekts am angegebenen Index einer Sammlung (angenommen, es gibt mindestens zwei Sektionen in der “Presentation.pptx”-Präsentation):
[C#]
using (Presentation pres = new Presentation("Presentation.pptx"))
{
ISectionZoomFrame zoomFrame = pres.Slides[0].Shapes.InsertSectionZoomFrame(2, 150, 20, 50, 50, pres.Sections[1]);
}
Siehe auch
- interface ISectionZoomFrame
- interface ISection
- class ShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
InsertSectionZoomFrame(int, float, float, float, float, ISection, IPPImage)
Erstellt ein neues Section Zoom-Objekt und fügt es an der angegebenen Stelle in eine Sammlung ein.
public ISectionZoomFrame InsertSectionZoomFrame(int index, float x, float y, float width,
float height, ISection section, IPPImage image)
| Parameter | Typ | Beschreibung |
|---|---|---|
| index | Int32 | Der nullbasierte Index, an dem das Section Zoom-Frame eingefügt werden soll. |
| x | Single | X-Koordinate eines neuen Section Zoom-Frames als Single. |
| y | Single | Y-Koordinate eines neuen Section Zoom-Frames als Single. |
| width | Single | Breite eines neuen Section Zoom-Frames als Single. |
| height | Single | Höhe eines neuen Section Zoom-Frames als Single. |
| section | ISection | Das Folienobjekt, auf das das Section Zoom-Frame verweist ISection. |
| image | IPPImage | Das Bild für die referenzierte Folie IPPImage |
Rückgabewert
Erstelltes Section Zoom-Objekt ISectionZoomFrame.
Ausnahmen
| Ausnahme | Bedingung |
|---|---|
| ArgumentException | Die referenzierte Sektion gehört nicht zur aktuellen Präsentation oder enthält keine Folien. |
Beispiele
Dieses Beispiel zeigt die Erstellung und das Einfügen eines Section Zoom-Objekts am angegebenen Index einer Sammlung (angenommen, es gibt mindestens zwei Sektionen in der “Presentation.pptx”-Präsentation):
[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);
}
Siehe auch
- interface ISectionZoomFrame
- interface ISection
- interface IPPImage
- class ShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides