InlineShapes.AddSmartArt(SmartArtLayout, Object) 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);
Public Function AddSmartArt (Layout As SmartArtLayout, Optional ByRef Range As Object) As InlineShape
Parameters
Layout
Microsoft.Office.Core.SmartArtLayout Microsoft.Office.Core.SmartArtLayout

A Microsoft.Office.Core.SmartArtLayout object that specifies the layout for the SmartArt graphic.

Range
Object 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