IShapeCollectionAddSmartArt Method

Add SmartArt diagram.

Namespace:  Aspose.Slides
Assembly:  Aspose.Slides (in Aspose.Slides.dll) Version: 21.11.0.0 (21.11)
Syntax
ISmartArt AddSmartArt(
	float x,
	float y,
	float width,
	float height,
	SmartArtLayoutType layoutType
)

Parameters

x
Type: SystemSingle
The X-coordinate for a left side of diagram's frame.
y
Type: SystemSingle
The Y-coordinate for a left side of diagram's frame.
width
Type: SystemSingle
The width of diagram's frame.
height
Type: SystemSingle
The height of diagram's frame.
layoutType
Type: Aspose.Slides.SmartArtSmartArtLayoutType
The type of SmartArt diagram

Return Value

Type: ISmartArt
Create SmartArt diagram
Examples
Example:
[C#]
Presentation pres = new Presentation();
Slide slide = pres.Slides[0];
SmartArt smart = slide.Shapes.AddSmartArt(0, 0, 400, 400, SmartArtLayoutType.BasicBlockList);
[Visual Basic]
Private pres As New Presentation()
Private slide As Slide = pres.Slides(0)
Private smart As SmartArt = slide.Shapes.AddSmartArt(0, 0, 400, 400, SmartArtLayoutType.BasicBlockList)
See Also