GcSpread.Sheets Namespace > Spread type : getActiveSheet Method |
var instance = new GcSpread.Sheets.Spread(host, options); var value; // Type: Sheet value = instance.getActiveSheet();
function getActiveSheet() : Sheet;
var activeSheet = spread.getActiveSheet(); //Map the created action to the Enter key. activeSheet.addKeyMap(GcSpread.Sheets.Key.enter, false, false, false, false, ColorAction); function ColorAction(){ //Click on a cell and press the Enter key. activeSheet.getCell(activeSheet.getActiveRowIndex(), activeSheet.getActiveColumnIndex()) .backColor("red"); }