AddSmartArtPlaceholder

ILayoutPlaceholderManager.AddSmartArtPlaceholder-Methode

Fügt der Layout-Folie eine neue Platzhalterform hinzu, um ein SmartArt-Diagramm zu halten.

public IAutoShape AddSmartArtPlaceholder(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 ein IAutoShape mit einem SmartArt-Platzhalter.

Beispiele

Das folgende Beispiel zeigt, wie die SmartArt-Platzhalterform zur Layout-Folie hinzugefügt wird.

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

Siehe auch