SpreadJS Documentation
all Method
GC.Spread.Sheets.Shapes Namespace > ShapeCollection type : all Method
get all shapes
Syntax
var instance = new GC.Spread.Sheets.Shapes.ShapeCollection(sheet);
var value; // Type: any
value = instance.all();
function all() : any;

Return Value

all shapes
Example
// This sample shows how to get 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);
var shapes = activeSheet.shapes.all();
See Also

Reference

ShapeCollection type