Spread.Sheets Documentation
SelectionChanging Event
GC.Spread.Sheets Namespace > Events type : SelectionChanging Event
The sheet that triggered the event.
The sheet's name.
The old selection ranges.
The new selection ranges.
Occurs when the selection of cells on the sheet is changing.
Syntax
var instance; // Type: Events
instance.SelectionChanging = function(sheet, sheetName, oldSelections, newSelections) { };
SelectionChanging = function ( 
   sheet : Worksheet,
   sheetName : string,
   oldSelections : undefined,
   newSelections : undefined
) { };

Parameters

sheet
The sheet that triggered the event.
sheetName
The sheet's name.
oldSelections
The old selection ranges.
newSelections
The new selection ranges.
Example
This example uses the SelectionChanging event.
activeSheet.bind(GC.Spread.Sheets.Events.SelectionChanging, function (e, info) {    
//Use IE to see console
        console.log("Name (" + info.sheetName + ")");
});
See Also

Reference

Events type