Shapes.AddSmartArt Method
Creates a new SmartArt graphic with the specified layout.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Function AddSmartArt ( _
Layout As SmartArtLayout, _
Left As Object, _
Top As Object, _
Width As Object, _
Height As Object _
) As Shape
'Usage
Dim instance As Shapes
Dim Layout As SmartArtLayout
Dim Left As Object
Dim Top As Object
Dim Width As Object
Dim Height As Object
Dim returnValue As Shape
returnValue = instance.AddSmartArt(Layout, _
Left, Top, Width, Height)
Shape AddSmartArt(
SmartArtLayout Layout,
Object Left,
Object Top,
Object Width,
Object Height
)
Parameters
Layout
Type: Microsoft.Office.Core.SmartArtLayoutAn object that represents the layout to use.
Left
Type: System.ObjectThe distance, in points, from the left edge of the object to the left edge of column A (on a worksheet) or the left edge of the chart area (on a chart).
Top
Type: System.ObjectThe distance, in points, from the top edge of the object to the top edge of the worksheet.
Width
Type: System.ObjectThe width, in points, of the object.
Height
Type: System.ObjectThe width, in points, of the object.
Return Value
Type: Microsoft.Office.Interop.Excel.Shape
A Shape object.