AddSmartArt
ShapeCollection.AddSmartArt method
Add SmartArt diagram.
public ISmartArt AddSmartArt(float x, float y, float width, float height,
SmartArtLayoutType layoutType)
Parameter | Type | Description |
---|---|---|
x | Single | The X-coordinate for a left side of diagram’s frame. |
y | Single | The Y-coordinate for a left side of diagram’s frame. |
width | Single | The width of diagram’s frame. |
height | Single | The height of diagram’s frame. |
layoutType | SmartArtLayoutType | The type of SmartArt diagram |
Return Value
Create SmartArt diagram
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