Document Solutions for Excel, .NET Edition | Document Solutions
GrapeCity.Documents.Excel.Drawing Namespace / IShapes Interface / AddShape Method / AddShape(String,AutoShapeType,IRange) Method
The shape name
Specifies the type of AutoShape to create.
The target range of the current sheet.
In This Topic
    AddShape(String,AutoShapeType,IRange) Method
    In This Topic
    Returns the IShape object that represents the new AutoShape at the specified range on the current sheet.

    The sheet of targetRange and the sheet of the shape being added must be the same sheet.
    Syntax
    IShape AddShape( 
       System.string name,
       AutoShapeType type,
       IRange targetRange
    )

    Parameters

    name
    The shape name
    type
    Specifies the type of AutoShape to create.
    targetRange
    The target range of the current sheet.

    Return Value

    The IShapeThe object.
    See Also