InsertSectionZoomFrame

InsertSectionZoomFrame(int, float, float, float, float, ISection)

Erstellt ein neues Section Zoom-Objekt und fügt es in eine Sammlung am angegebenen Index ein.

public ISectionZoomFrame InsertSectionZoomFrame(int index, float x, float y, float width, 
    float height, ISection section)
ParameterTypBeschreibung
indexInt32Der nullbasierte Index, an dem der Section Zoom-Frame eingefügt werden soll.
xSingleX-Koordinate eines neuen Section Zoom-Frames Single.
ySingleY-Koordinate eines neuen Section Zoom-Frames Single.
widthSingleBreite eines neuen Section Zoom-Frames Single.
heightSingleHöhe eines neuen Section Zoom-Frames Single.
sectionISectionDas Folienobjekt, auf das der Section Zoom-Frame verweist ISection.

Rückgabewert

Erstelltes Section Zoom-Objekt ISectionZoomFrame.

Ausnahmen

AusnahmeBedingung
ArgumentExceptionDie referenzierte Sektion gehört nicht zur aktuellen Präsentation oder enthält keine Folien.

Beispiele

Dieses Beispiel demonstriert die Erstellung und das Einfügen eines Section Zoom-Objekts am angegebenen Index einer Sammlung (angenommen, es gibt mindestens zwei Sektionen in der Präsentation “Presentation.pptx”):

[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


InsertSectionZoomFrame(int, float, float, float, float, ISection, IPPImage)

Erstellt ein neues Section Zoom-Objekt und fügt es in eine Sammlung am angegebenen Index ein.

public ISectionZoomFrame InsertSectionZoomFrame(int index, float x, float y, float width, 
    float height, ISection section, IPPImage image)
ParameterTypBeschreibung
indexInt32Der nullbasierte Index, an dem der Section Zoom-Frame eingefügt werden soll.
xSingleX-Koordinate eines neuen Section Zoom-Frames Single.
ySingleY-Koordinate eines neuen Section Zoom-Frames Single.
widthSingleBreite eines neuen Section Zoom-Frames Single.
heightSingleHöhe eines neuen Section Zoom-Frames Single.
sectionISectionDas Folienobjekt, auf das der Section Zoom-Frame verweist ISection.
imageIPPImageDas Bild für die referenzierte Folie IPPImage

Rückgabewert

Erstelltes Section Zoom-Objekt ISectionZoomFrame.

Ausnahmen

AusnahmeBedingung
ArgumentExceptionDie referenzierte Sektion gehört nicht zur aktuellen Präsentation oder enthält keine Folien.

Beispiele

Dieses Beispiel demonstriert die Erstellung und das Einfügen eines Section Zoom-Objekts am angegebenen Index einer Sammlung (angenommen, es gibt mindestens zwei Sektionen 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.InsertSectionZoomFrame(2, 150, 20, 50, 50, pres.Sections[1], image);
}

Siehe auch