AddPicturePlaceholder

ILayoutPlaceholderManager.AddPicturePlaceholder-Methode

Fügt eine neue Platzhalterform zur Layoutfolie hinzu, um ein Bild zu halten.

public IAutoShape AddPicturePlaceholder(float x, float y, float width, float height)
ParameterTypBeschreibung
xSingleDie X-Koordinate der neuen Platzhalterform.
ySingleDie Y-Koordinate der neuen Platzhalterform.
widthSingleDie Breite der neuen Platzhalterform.
heightSingleDie Höhe der neuen Platzhalterform.

Rückgabewert

Erstellt IAutoShape mit einem Bildplatzhalter.

Beispiele

Das folgende Beispiel zeigt, wie die Bildplatzhalterform zur Layoutfolie hinzugefügt wird.

[C#]
using (Presentation pres = new Presentation())
{
	ILayoutSlide layout = pres.LayoutSlides.GetByType(SlideLayoutType.Blank);
	IAutoShape placeholder = layout.PlaceholderManager.AddPicturePlaceholder(20, 20, 200, 200);
}

Siehe auch