Documents for Excel, Java Edition Documentation
com.grapecity.documents.excel.drawing Package / IShapes Interface / addShape Method / addShape(String,AutoShapeType,double,double,double,double) Method
The shape name
Specifies the type of AutoShape to create.
The position (in points) of the upper-left corner of theAutoShape's boundary box relative to the upper-left corner of the document.
The position (in points) of the upper-left corner of theAutoShape's boundary box relative to the upper-left corner of the document.
The width and height of the AutoShape's boundary box, in points.
The width and height of the AutoShape's boundary box, in points.
In This Topic
    addShape(String,AutoShapeType,double,double,double,double) Method
    In This Topic
    Returns the IShape object that represents the new AutoShape in aworksheet.
    Syntax
    IShape addShape( 
       java.lang.String name,
       AutoShapeType type,
       double left,
       double top,
       double width,
       double height
    )

    Parameters

    name
    The shape name
    type
    Specifies the type of AutoShape to create.
    left
    The position (in points) of the upper-left corner of theAutoShape's boundary box relative to the upper-left corner of the document.
    top
    The position (in points) of the upper-left corner of theAutoShape's boundary box relative to the upper-left corner of the document.
    width
    The width and height of the AutoShape's boundary box, in points.
    height
    The width and height of the AutoShape's boundary box, in points.

    Return Value

    The IShapeThe object.
    See Also