SpreadJS Documentation
getActiveSheetIndex Method
GC.Spread.Sheets Namespace > Workbook type : getActiveSheetIndex Method
Gets the active sheet index of the control.
Syntax
var instance = new GC.Spread.Sheets.Workbook(host);
var value; // Type: number
value = instance.getActiveSheetIndex();
function getActiveSheetIndex() : number;

Return Value

The active sheet index.
Example
This example uses the getActiveSheetIndex method.
var index = spread.getActiveSheetIndex();
alert(index);
See Also

Reference

Workbook type