SpreadJS 13
GC.Spread.Sheets Namespace / Worksheet type / frozenColumnCount Method
The number of columns to freeze.
In This Topic
    frozenColumnCount Method
    In This Topic
    Gets or sets the number of frozen columns of the sheet.
    Syntax
    var instance = new GC.Spread.Sheets.Worksheet(name);
    var value; // Type: any
    value = instance.frozenColumnCount(colCount);
    function frozenColumnCount( 
       (optional) colCount : number
    ) : any;

    Parameters

    colCount
    The number of columns to freeze.

    Return Value

    If no value is set, returns the number of frozen columns; otherwise, returns the worksheet.
    Example
    This example returns the frozen row and column counts.
    var ccount = activeSheet.frozenColumnCount();
    var rcount = activeSheet.frozenRowCount();
    alert(ccount);
    alert(rcount);
    This example creates a frozen column.
    sheet.setRowCount(10);
    sheet.setColumnCount(8);
    sheet.frozenColumnCount(1);
    Remarks
    The default value is 0.
    See Also

    Reference

    Worksheet type