Export (0) Print
Expand All

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)

InlineShape AddSmartArt(
	SmartArtLayout Layout,
	ref Object Range
)

Parameters

Layout
Type: Microsoft.Office.Core.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.
Show:
© 2015 Microsoft