SpreadJS 13
GC.Spread.Sheets.Shapes Namespace / ShapeCollection type / clear Method
In This Topic
    clear Method
    In This Topic
    clear all shapes
    Syntax
    var instance = new GC.Spread.Sheets.Shapes.ShapeCollection(sheet);
    var value; // Type: any
    value = instance.clear();
    function clear() : any;
    Example
    //This example shows how to clear all shapes in shape collection
    activeSheet.shapes.add("shape1", GC.Spread.Sheets.Shapes.AutoShapeType.heart, 100, 50, 100, 150);
    activeSheet.shapes.addConnector("shape2", GC.Spread.Sheets.Shapes.ConnectorType.elbow, 200, 50, 300, 200);
    activeSheet.shapes.clear();
    See Also