addSmartArt

addSmartArt(float x, float y, float width, float height, int layoutType) function

Add SmartArt diagram.

Parameters

NameTypeDescription
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.
layoutTypeintThe type of SmartArt diagram

Result

SmartArt