SpreadJS Documentation
ShapeSelectionChanged Event
GC.Spread.Sheets Namespace > Events type : ShapeSelectionChanged Event
The sheet that triggered the event.
The sheet's name.
The shape that triggered the event.
Occurs when the selections of the shape have changed.
Syntax
var instance; // Type: Events
instance.ShapeSelectionChanged = function(sheet, sheetName, shape) { };
ShapeSelectionChanged = function ( 
   sheet : Worksheet,
   sheetName : string,
   shape : Shape
) { };

Parameters

sheet
The sheet that triggered the event.
sheetName
The sheet's name.
shape
The shape that triggered the event.
Example
//This example uses the ShapeSelectionChanged event.
var shape = sheet.shapes.add("myShape", GC.Spread.Sheets.Shapes.AutoShapeType.diamond, 0, 90, 200, 200);
activeSheet.bind(GC.Spread.Sheets.Events.ShapeSelectionChanged, function (e, info) {
       console.log("event info: " + info);
});
See Also

Reference

Events type