InlineShapes.AddSmartArt Method (Word)

Inserts a SmartArt graphic as an inline shape into the active document.

Version Information

Version Added: Word 2010

Syntax

expression .AddSmartArt(Layout, Range)

expression An expression that returns a InlineShapes object.

Parameters

Name

Required/Optional

Data Type

Description

Layout

Required

[SMARTARTLAYOUT]

A SmartArtLayoutobject that specifies the layout for the SmartArt graphic.

Range

Optional

Variant

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

Return Value

InlineShape

See Also

Concepts

InlineShapes Collection Object

InlineShapes Object Members