add_smart_art method
add_smart_art
Creates a SmartArt diagram and adds it to the end of the shape collection.
Returns
The newly created ISmartArt.
def add_smart_art(self, x, y, width, height, layout_type):
...
| Parameter | Type | Description |
|---|---|---|
| x | float | The x-coordinate of the diagram’s frame, in points. |
| y | float | The y-coordinate of the diagram’s frame, in points. |
| width | float | The width of the diagram’s frame, in points. |
| height | float | The height of the diagram’s frame, in points. |
| layout_type | SmartArtLayoutType | The SmartArt layout type. |
Examples
The following example shows how to add smart shape in PowerPoint Presentation.
See Also
- class
ISmartArt - class
ShapeCollection - enumeration
SmartArtLayoutType - module
aspose.slides - library
Aspose.Slides