AddSmartArt()
Contents
[
Hide
]IShapeCollection::AddSmartArt(float, float, float, float, SmartArt::SmartArtLayoutType) method
Creates a SmartArt diagram and adds it to the end of the shape collection.
virtual System::SharedPtr<SmartArt::ISmartArt> Aspose::Slides::IShapeCollection::AddSmartArt(float x, float y, float width, float height, SmartArt::SmartArtLayoutType layoutType)=0
Arguments
| Parameter | Type | Description |
|---|---|---|
| x | float | The x-coordinate of the diagram\u2019s frame, in points. |
| y | float | The y-coordinate of the diagram\u2019s frame, in points. |
| width | float | The width of the diagram\u2019s frame, in points. |
| height | float | The height of the diagram\u2019s frame, in points. |
| layoutType | SmartArt::SmartArtLayoutType | The SmartArt layout type. |
Return Value
The newly created SmartArt::ISmartArt.
Remarks
auto pres = System::MakeObject<Presentation>();
auto slide = pres->get_Slide(0);
auto smart = slide->get_Shapes()->AddSmartArt(0.0f, 0.0f, 400.0f, 400.0f, SmartArtLayoutType::BasicBlockList);
See Also
- Enum SmartArtLayoutType
- Typedef SharedPtr
- Class ISmartArt
- Class IShapeCollection
- Namespace Aspose::Slides
- Library Aspose.Slides