SpreadJS Documentation
type Method
GC.Spread.Sheets.Shapes Namespace > Shape type : type Method
The type of the shape.
Gets or sets the type of the shape.
Syntax
var instance = new GC.Spread.Sheets.Shapes.Shape(worksheet, name, autoShapeTypeOrModel, left, top, width, height);
var returnValue; // Type: any
returnValue = instance.type(value);
function type( 
   value : AutoShapeType
) : any;

Parameters

value
The type of the shape.

Return Value

If no value is set, returns the type of the shape.
Example
var heart = sheet.shapes.add("Shape1", GC.Spread.Sheets.Shapes.AutoShapeType.heart, 100, 60, 200, 160);
var n = heart.type();
heart.type(GC.Spread.Sheets.Shapes.AutoShapeType.cloud);
See Also

Reference

Shape type