AddSmartArt()
Contents
[
Hide
]IShapeCollection::AddSmartArt(float, float, float, float, SmartArt::SmartArtLayoutType) method
Add SmartArt diagram.
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 for a left side of diagram’s frame. |
y | float | The Y-coordinate for a left side of diagram’s frame. |
width | float | The width of diagram’s frame. |
height | float | The height of diagram’s frame. |
layoutType | SmartArt::SmartArtLayoutType | The type of SmartArt diagram |
Return Value
Create SmartArt diagram
Remarks
auto pres = System::MakeObject<Presentation>();
auto slide = pres->get_Slides()->idx_get(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