AddSmartArt
IShapeCollection.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
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