AddSmartArt

IShapeCollection.AddSmartArt method

SmartArt-Diagramm hinzufügen.

public ISmartArt AddSmartArt(float x, float y, float width, float height, 
    SmartArtLayoutType layoutType)
ParameterTypBeschreibung
xSingleDie X-Koordinate für eine linke Seite des Diagrammrahmens.
ySingleDie Y-Koordinate für eine linke Seite des Diagrammrahmens.
widthSingleDie Breite des Diagrammrahmens.
heightSingleDie Höhe des Diagrammrahmens.
layoutTypeSmartArtLayoutTypeDer Typ des SmartArt-Diagramms

Rückgabewert

Erstellen Sie 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