AddSmartArt
ShapeCollection.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
The following example shows how to add smart shape in PowerPoint Presentation.
[C#]
using (Presentation pres = new Presentation())
{
Slide slide = pres.Slides[0];
SmartArt smart = slide.Shapes.AddSmartArt(0, 0, 400, 400, SmartArtLayoutType.BasicBlockList);
}
See Also
- interface ISmartArt
- enum SmartArtLayoutType
- class ShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides