InlineShapes.AddSmartArt(SmartArtLayout, Object) InlineShapes.AddSmartArt(SmartArtLayout, Object) Method


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
Microsoft.Office.Core.SmartArtLayout Microsoft.Office.Core.SmartArtLayout

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

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.


The SmartArt graphic to insert.

Applies to