Compartilhar via


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

  • Left
    Type: System.Object

    The 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.Object

    The distance, in points, from the top edge of the object to the top edge of the worksheet.

  • Height
    Type: System.Object

    The width, in points, of the object.

Return Value

Type: Microsoft.Office.Interop.Excel.Shape
A Shape object.

See Also

Reference

Shapes Interface

Shapes Members

Microsoft.Office.Interop.Excel Namespace