SpreadJS 13
GC.Spread.Sheets.Shapes Namespace / ShapeCollection type / remove Method
The name of the shape.
In This Topic
    remove Method
    In This Topic
    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