AddSmartArt()

ShapeCollection::AddSmartArt(float, float, float, float, SmartArt::SmartArtLayoutType) method

Add SmartArt diagram.

System::SharedPtr<SmartArt::ISmartArt> Aspose::Slides::ShapeCollection::AddSmartArt(float x, float y, float width, float height, SmartArt::SmartArtLayoutType layoutType) override

Arguments

ParameterTypeDescription
xfloatThe X-coordinate for a left side of diagram’s frame.
yfloatThe Y-coordinate for a left side of diagram’s frame.
widthfloatThe width of diagram’s frame.
heightfloatThe height of diagram’s frame.
layoutTypeSmartArt::SmartArtLayoutTypeThe 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