Share via


Shapes.AddSmartArt Method (PowerPoint)

Adds a SmartArt diagram to the Shapes object.

Version Information

Version Added: PowerPoint 2010

Syntax

expression .AddSmartArt(Layout, Left, Top, Width, Height)

expression A variable that represents a Shapes object.

Parameters

Name

Required/Optional

Data Type

Description

Layout

Required

[SMARTARTLAYOUT]

The SmartArt diagram to add.

Left

Optional

Single

The distance, in points, from the left edge of the slide to the left edge of the SmartArt diagram.

Top

Optional

Single

The distance, in points, from the top edge of the slide to the top edge of the SmartArt diagram.

Width

Optional

Single

The width of the SmartArt diagram.

Height

Optional

Single

The height of the SmartArt diagram.

Return Value

Shape

See Also

Concepts

Shapes Object

Shapes Object Members