InlineShapes.AddSmartArt Method

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

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Function AddSmartArt ( _
    Layout As SmartArtLayout, _
    ByRef Range As Object _
) As InlineShape
'Usage
Dim instance As InlineShapes
Dim Layout As SmartArtLayout
Dim Range As Object
Dim returnValue As InlineShape

returnValue = instance.AddSmartArt(Layout, _
    Range)
InlineShape AddSmartArt(
    SmartArtLayout Layout,
    ref Object Range
)

Parameters

  • Layout
    Type: SmartArtLayout
    A SmartArtLayout object that specifies the layout for the SmartArt graphic.
  • Range
    Type: System.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.

Return Value

Type: Microsoft.Office.Interop.Word.InlineShape
The SmartArt graphic to insert.

See Also

Reference

InlineShapes Interface

InlineShapes Members

Microsoft.Office.Interop.Word Namespace