Spread.Sheets Documentation
UserZooming Event
GC.Spread.Sheets Namespace > Events type : UserZooming Event
The sheet that triggered the event.
The sheet's name.
The new zoom factor.
The old zoom factor.
Occurs when the user zooms.
Syntax
var instance; // Type: Events
instance.UserZooming = function(sheet, sheetName, oldZoomFactor, newZoomFactor) { };
UserZooming = function ( 
   sheet : Worksheet,
   sheetName : string,
   oldZoomFactor : number,
   newZoomFactor : number
) { };

Parameters

sheet
The sheet that triggered the event.
sheetName
The sheet's name.
oldZoomFactor
The new zoom factor.
newZoomFactor
The old zoom factor.
Example
This example uses the UserZooming event.
spread.options.allowUserZoom = true;

activeSheet.bind(GC.Spread.Sheets.Events.UserZooming, function (e, info) {    
        alert("Zoom (" + info.newZoomFactor + ")");
});
See Also

Reference

Events type