Shapes.AddSmartArt Method (Word)

Inserts the specified SmartArt graphic into the active document.

Version Added: Word 2010

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

expression An expression that returns a Shapes object.

Parameters

Name

Required/Optional

Data Type

Description

Layout

Required

[SMARTARTLAYOUT]

A SmartArtLayout object that specifies the layout for the SmartArt graphic.

Left

Optional

Variant

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

Top

Optional

Variant

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

Width

Optional

Variant

The width of the SmartArt graphic.

Height

Optional

Variant

The height of the SmartArt graphic.

Anchor

Optional

Variant

A Range object that represents the text to which the SmartArt graphic is bound. If Anchor is specified, the anchor is positioned at the beginning of the first paragraph in the anchoring range. If this argument is omitted, the anchoring range is selected automatically and the SmartArt graphic is positioned relative to the top and left edges of the page.

Return Value

Show:
© 2015 Microsoft