Shapes.AddSmartArt Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Inserts the specified SmartArt graphic into the active document.
public Microsoft.Office.Interop.Word.Shape AddSmartArt (Microsoft.Office.Core.SmartArtLayout Layout, ref object Left, ref object Top, ref object Width, ref object Height, ref object Anchor);
abstract member AddSmartArt : Microsoft.Office.Core.SmartArtLayout * obj * obj * obj * obj * obj -> Microsoft.Office.Interop.Word.Shape
Public Function AddSmartArt (Layout As SmartArtLayout, Optional ByRef Left As Object, Optional ByRef Top As Object, Optional ByRef Width As Object, Optional ByRef Height As Object, Optional ByRef Anchor As Object) As Shape
Parameters
- Layout
- SmartArtLayout
A SmartArtLayout object that specifies the layout for the SmartArt graphic.
- Left
- Object
The distance, in points, from the left edge of the slide to the left edge of the SmartArt graphic.
- Top
- Object
The distance, in points, from the top edge of the slide to the top edge of the SmartArt graphic.
- Width
- Object
The width of the SmartArt graphic.
- Height
- Object
The height of the SmartArt graphic.
- Anchor
- Object
A Range object that represents the text to which the SmartArt graphic is bound. If Anchor is specified, the anchor is positioned at the beginning of the first paragraph in the anchoring range. If this parameter is omitted, the anchoring range is selected automatically and the SmartArt graphic is positioned relative to the top and left edges of the page.
Returns
A Shape object.