InlineShapes.AddSmartArt(SmartArtLayout, Object) Method

Definition

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

public Microsoft.Office.Interop.Word.InlineShape AddSmartArt (Microsoft.Office.Core.SmartArtLayout Layout, ref object Range);
abstract member AddSmartArt : Microsoft.Office.Core.SmartArtLayout * obj -> Microsoft.Office.Interop.Word.InlineShape
Public Function AddSmartArt (Layout As SmartArtLayout, Optional ByRef Range As Object) As InlineShape

Parameters

Layout
SmartArtLayout

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

Range
Object

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 parameter is omitted, the range is selected automatically, and the SmartArt graphic is positioned relative to the top and left edges of the page.

Returns

The SmartArt graphic to insert.

Applies to