AddZoomFrame

AddZoomFrame(float, float, float, float, ISlide)

Fügt ein neues Zoom-Objekt am Ende einer Sammlung hinzu.

public IZoomFrame AddZoomFrame(float x, float y, float width, float height, ISlide slide)
ParameterTypBeschreibung
xSingleX-Koordinate eines neuen Zoom-Frames Single.
ySingleY-Koordinate eines neuen Zoom-Frames Single.
widthSingleBreite eines neuen Zoom-Frames Single.
heightSingleHöhe eines neuen Zoom-Frames Single.
slideISlideDas Folienobjekt, auf das sich der Zoom-Frame bezieht ISlide.

Rückgabewert

Erstellt das Zoom-Objekt IZoomFrame.

Ausnahmen

AusnahmeBedingung
ArgumentExceptionDie referenzierte Folie gehört nicht zur aktuellen Präsentation.

Beispiele

Dieses Beispiel zeigt, wie man ein Zoom-Objekt am Ende einer Sammlung hinzufügt (angenommen, dass es mindestens zwei Folien in der Präsentation “Presentation.pptx” gibt):

[C#]
using (Presentation pres = new Presentation("Presentation.pptx"))
{
    IZoomFrame zoomFrame = pres.Slides[0].Shapes.AddZoomFrame(150, 20, 50, 50, pres.Slides[1]);
}

Siehe auch


AddZoomFrame(float, float, float, float, ISlide, IPPImage)

Fügt ein neues Zoom-Objekt am Ende einer Sammlung hinzu.

public IZoomFrame AddZoomFrame(float x, float y, float width, float height, ISlide slide, 
    IPPImage image)
ParameterTypBeschreibung
xSingleX-Koordinate eines neuen Zoom-Frames Single.
ySingleY-Koordinate eines neuen Zoom-Frames Single.
widthSingleBreite eines neuen Zoom-Frames Single.
heightSingleHöhe eines neuen Zoom-Frames Single.
slideISlideDas Folienobjekt, auf das sich der Zoom-Frame bezieht ISlide.
imageIPPImageDas Bild für die referenzierte Folie IPPImage

Rückgabewert

Erstellt das Zoom-Objekt IZoomFrame.

Ausnahmen

AusnahmeBedingung
ArgumentExceptionDie referenzierte Folie gehört nicht zur aktuellen Präsentation.

Beispiele

Dieses Beispiel zeigt, wie man ein Zoom-Objekt am Ende einer Sammlung hinzufügt (angenommen, dass es mindestens zwei Folien in der Präsentation “Presentation.pptx” gibt):

[C#]
using (Presentation pres = new Presentation("Presentation.pptx"))
{
    IPPImage image = pres.Images.AddImage(Image.FromFile("image.png"));
    IZoomFrame zoomFrame = pres.Slides[0].Shapes.AddZoomFrame(150, 20, 50, 50, pres.Slides[1], image);
}

Siehe auch