SpreadJS Documentation
Shape Method
GC.Spread.Sheets Namespace > Shapes type : Shape Method
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.
*
Syntax
var value; // Type: any
value = 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
) : any;

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

Shapes type