InsertSectionZoomFrame

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)
ParameterTypBeschreibung
indexInt32Der nullbasierte Index, an dem das Section Zoom-Frame eingefügt werden soll.
xSingleX-Koordinate eines neuen Section Zoom-Frames als Single.
ySingleY-Koordinate eines neuen Section Zoom-Frames als Single.
widthSingleBreite eines neuen Section Zoom-Frames als Single.
heightSingleHöhe eines neuen Section Zoom-Frames als Single.
sectionISectionDas Folienobjekt, auf das das 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 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


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)
ParameterTypBeschreibung
indexInt32Der nullbasierte Index, an dem das Section Zoom-Frame eingefügt werden soll.
xSingleX-Koordinate eines neuen Section Zoom-Frames als Single.
ySingleY-Koordinate eines neuen Section Zoom-Frames als Single.
widthSingleBreite eines neuen Section Zoom-Frames als Single.
heightSingleHöhe eines neuen Section Zoom-Frames als Single.
sectionISectionDas Folienobjekt, auf das das 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 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