SpreadJS 13
GC.Spread.Sheets Namespace / Worksheet type / zoom Method
The zoom factor.
In This Topic
    zoom Method
    In This Topic

    Syntax
    var instance = new GC.Spread.Sheets.Worksheet(name);
    var value; // Type: any
    value = instance.zoom(factor);
    function zoom( 
       (optional) factor : number
    ) : any;

    Parameters

    factor
    The zoom factor.

    Return Value

    If no value is set, returns the zoom factor; otherwise, returns the worksheet.
    Example
    This example zooms the sheet.
    spread.options.allowUserZoom = false;
    sheet.zoom(3);
    Remarks
    The default value is 1.
    See Also