AddSmartArtPlaceholder
LayoutPlaceholderManager.AddSmartArtPlaceholder Methode
Fügt eine neue Platzhalterform zur Layoutfolie hinzu, um ein SmartArt-Diagramm zu halten.
public IAutoShape AddSmartArtPlaceholder(float x, float y, float width, float height)
Parameter | Typ | Beschreibung |
---|---|---|
x | Single | Die X-Koordinate der neuen Platzhalterform. |
y | Single | Die Y-Koordinate der neuen Platzhalterform. |
width | Single | Die Breite der neuen Platzhalterform. |
height | Single | Die Höhe der neuen Platzhalterform. |
Rückgabewert
Erstellt IAutoShape
mit einem SmartArt-Platzhalter.
Beispiele
Das folgende Beispiel zeigt, wie die SmartArt-Platzhalterform zur Layoutfolie hinzugefügt werden kann.
[C#]
using (Presentation pres = new Presentation())
{
ILayoutSlide layout = pres.LayoutSlides.GetByType(SlideLayoutType.Blank);
IAutoShape placeholder = layout.PlaceholderManager.AddSmartArtPlaceholder(20, 20, 200, 200);
}
Siehe auch
- Schnittstelle IAutoShape
- Klasse LayoutPlaceholderManager
- Namespace Aspose.Slides
- Assembly Aspose.Slides