Document Solutions for Excel, Java Edition | Document Solutions
com.grapecity.documents.excel.drawing Package / IChart Interface / addShape Method
Specifies the type of AutoShape to create.
The distance from the left edge of the AutoShape's boundary box to the left edge of the chart area, in points.
The distance from the top edge of the AutoShape's boundary box to the top edge of the chart area, in points.
The width of the AutoShape's boundary box, in points.
The height of the AutoShape's boundary box, in points.
In This Topic
    addShape Method
    In This Topic
    Returns the @code:IShape object that represents the new AutoShape in the chart.
    Syntax
    IShape addShape( 
       AutoShapeType type,
       double left,
       double top,
       double width,
       double height
    )

    Parameters

    type
    Specifies the type of AutoShape to create.
    left
    The distance from the left edge of the AutoShape's boundary box to the left edge of the chart area, in points.
    top
    The distance from the top edge of the AutoShape's boundary box to the top edge of the chart area, in points.
    width
    The width of the AutoShape's boundary box, in points.
    height
    The height of the AutoShape's boundary box, in points.

    Return Value

    The IShapeThe object.
    See Also