SpreadJS Documentation
remove Method
GC.Spread.Sheets.Shapes Namespace > ShapeCollection type : remove Method
The name of the shape.
remove a shape
Syntax
var instance = new GC.Spread.Sheets.Shapes.ShapeCollection(sheet);
var value; // Type: any
value = instance.remove(name);
function remove( 
   name : string
) : any;

Parameters

name
The name of the shape.
Example
//This example shows how to remove a shape
activeSheet.shapes.add("shape1", GC.Spread.Sheets.Shapes.AutoShapeType.heart, 100, 50, 100, 150);
activeSheet.shapes.remove("shape1");
See Also

Reference

ShapeCollection type