AddSmartArt
ShapeCollection.AddSmartArt-Methode
Fügen Sie ein SmartArt-Diagramm hinzu.
public ISmartArt AddSmartArt(float x, float y, float width, float height,
SmartArtLayoutType layoutType)
Parameter | Typ | Beschreibung |
---|---|---|
x | Single | Die X-Koordinate für die linke Seite des Diagrammrahmens. |
y | Single | Die Y-Koordinate für die linke Seite des Diagrammrahmens. |
width | Single | Die Breite des Diagrammrahmens. |
height | Single | Die Höhe des Diagrammrahmens. |
layoutType | SmartArtLayoutType | Der Typ des SmartArt-Diagramms |
Rückgabewert
Erstellt ein SmartArt-Diagramm
Beispiele
Das folgende Beispiel zeigt, wie man eine smarte Form in einer PowerPoint-Präsentation hinzufügt.
[C#]
using (Presentation pres = new Presentation())
{
Slide slide = pres.Slides[0];
SmartArt smart = slide.Shapes.AddSmartArt(0, 0, 400, 400, SmartArtLayoutType.BasicBlockList);
}
Siehe auch
- Schnittstelle ISmartArt
- Enum SmartArtLayoutType
- Klasse ShapeCollection
- Namespace Aspose.Slides
- Assembly Aspose.Slides