Shapes.AddSmartArt Method
Adds a SmartArt diagram to the Shapes object.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Function AddSmartArt ( _
Layout As SmartArtLayout, _
Left As Single, _
Top As Single, _
Width As Single, _
Height As Single _
) As Shape
'Usage
Dim instance As Shapes
Dim Layout As SmartArtLayout
Dim Left As Single
Dim Top As Single
Dim Width As Single
Dim Height As Single
Dim returnValue As Shape
returnValue = instance.AddSmartArt(Layout, _
Left, Top, Width, Height)
Shape AddSmartArt(
SmartArtLayout Layout,
float Left,
float Top,
float Width,
float Height
)
Parameters
- Layout
Type: Microsoft.Office.Core.SmartArtLayout
The SmartArt diagram to add.
- Left
Type: System.Single
The distance, in points, from the left edge of the slide to the left edge of the SmartArt diagram.
- Top
Type: System.Single
The distance, in points, from the top edge of the slide to the top edge of the SmartArt diagram.
- Width
Type: System.Single
The width of the SmartArt diagram.
- Height
Type: System.Single
The height of the SmartArt diagram.
Return Value
Type: Microsoft.Office.Interop.PowerPoint.Shape