SpreadJS 13
GC.Spread.Sheets.Shapes Namespace / Shape type / Shape Constructor
The host worksheet of the shape.
The name of the shape. If leave blank an unique name will be generated.
The type of the shape (for one of the buildin types) or the model for custom shape.
The x location of the shape.
The y location of the shape.
The width of the shape.
The height of the shape.
In This Topic
    Shape Constructor
    In This Topic
    Syntax
    var instance = new GC.Spread.Sheets.Shapes.Shape(worksheet, name, autoShapeTypeOrModel, left, top, width, height);
    function Shape( 
       worksheet : Worksheet,
       name : string,
       autoShapeTypeOrModel : undefined,
       left : number,
       top : number,
       width : number,
       height : number
    ) : Shape;

    Parameters

    worksheet
    The host worksheet of the shape.
    name
    The name of the shape. If leave blank an unique name will be generated.
    autoShapeTypeOrModel
    The type of the shape (for one of the buildin types) or the model for custom shape.
    left
    The x location of the shape.
    top
    The y location of the shape.
    width
    The width of the shape.
    height
    The height of the shape.
    See Also

    Reference

    Shape type