AddSmartArt
IShapeCollection.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 Rahmens des Diagramms. |
y | Single | Die Y-Koordinate für die linke Seite des Rahmens des Diagramms. |
width | Single | Die Breite des Rahmens des Diagramms. |
height | Single | Die Höhe des Rahmens des Diagramms. |
layoutType | SmartArtLayoutType | Der Typ des SmartArt-Diagramms |
Rückgabewert
Erstellt ein SmartArt-Diagramm
Beispiele
Beispiel:
[C#]
Presentation pres = new Presentation();
Slide slide = pres.Slides[0];
SmartArt smart = slide.Shapes.AddSmartArt(0, 0, 400, 400, SmartArtLayoutType.BasicBlockList);
[Visual Basic]
Private pres As New Presentation()
Private slide As Slide = pres.Slides(0)
Private smart As SmartArt = slide.Shapes.AddSmartArt(0, 0, 400, 400, SmartArtLayoutType.BasicBlockList)
Siehe auch
- interface ISmartArt
- enum SmartArtLayoutType
- interface IShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides