AddSmartArt()

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

Creates a SmartArt diagram and adds it to the end of the shape collection.

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 of the diagram\u2019s frame, in points.
yfloatThe y-coordinate of the diagram\u2019s frame, in points.
widthfloatThe width of the diagram\u2019s frame, in points.
heightfloatThe height of the diagram\u2019s frame, in points.
layoutTypeSmartArt::SmartArtLayoutTypeThe SmartArt layout type.

Return Value

The newly created ISmartArt.

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