AddSmartArt

IShapeCollection.AddSmartArt-Methode

Fügen Sie ein SmartArt-Diagramm hinzu.

public ISmartArt AddSmartArt(float x, float y, float width, float height, 
    SmartArtLayoutType layoutType)
ParameterTypBeschreibung
xSingleDie X-Koordinate für die linke Seite des Rahmens des Diagramms.
ySingleDie Y-Koordinate für die linke Seite des Rahmens des Diagramms.
widthSingleDie Breite des Rahmens des Diagramms.
heightSingleDie Höhe des Rahmens des Diagramms.
layoutTypeSmartArtLayoutTypeDer 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