AddSmartArt
IShapeCollection.AddSmartArt method
Creates a SmartArt diagram and adds it to the end of the shape collection.
public ISmartArt AddSmartArt(float x, float y, float width, float height,
SmartArtLayoutType layoutType)
Parameter | Type | Description |
---|---|---|
x | Single | The x-coordinate of the diagram’s frame, in points. |
y | Single | The y-coordinate of the diagram’s frame, in points. |
width | Single | The width of the diagram’s frame, in points. |
height | Single | The height of the diagram’s frame, in points. |
layoutType | SmartArtLayoutType | The SmartArt layout type. |
Return Value
The newly created ISmartArt
.
Examples
Example:
[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)
See Also
- interface ISmartArt
- enum SmartArtLayoutType
- interface IShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides