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

Parameters

name
The name of the shape.

Return Value

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

Reference

ShapeCollection type