AddSectionZoomFrame

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)
ParameterTypBeschreibung
xSingleX-Koordinate eines neuen Section Zoom-Frames.
ySingleY-Koordinate eines neuen Section Zoom-Frames.
widthSingleBreite eines neuen Section Zoom-Frames.
heightSingleHöhe eines neuen Section Zoom-Frames.
sectionISectionDas Abschnittsobjekt, auf das im Section Zoom-Frame verwiesen wird ISection.

Rückgabewert

Erstelltes Section Zoom-Objekt ISectionZoomFrame.

Ausnahmen

AusnahmeBedingung
ArgumentExceptionDas 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


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)
ParameterTypBeschreibung
xSingleX-Koordinate eines neuen Section Zoom-Frames.
ySingleY-Koordinate eines neuen Section Zoom-Frames.
widthSingleBreite eines neuen Section Zoom-Frames.
heightSingleHöhe eines neuen Section Zoom-Frames.
sectionISectionDas Abschnittsobjekt, auf das im Section Zoom-Frame verwiesen wird ISection.
imageIPPImageDas Bild für die referenzierte Folie IPPImage

Rückgabewert

Erstelltes Section Zoom-Objekt ISectionZoomFrame.

Ausnahmen

AusnahmeBedingung
ArgumentExceptionDas 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