SpreadJS 13
GC.Spread.Sheets Namespace / Worksheet type / setColumnResizable Method
The column index.
Set to true to allow users to resize the column.
The sheet area. If this parameter is not given, it defaults to viewport.
In This Topic
    setColumnResizable Method
    In This Topic
    Sets whether users can resize the specified column in the specified sheet area.
    Syntax
    var instance = new GC.Spread.Sheets.Worksheet(name);
    var returnValue; // Type: any
    returnValue = instance.setColumnResizable(col, value, sheetArea);
    function setColumnResizable( 
       col : number,
       value : boolean,
       (optional) sheetArea : SheetArea
    ) : any;

    Parameters

    col
    The column index.
    value
    Set to true to allow users to resize the column.
    sheetArea
    The sheet area. If this parameter is not given, it defaults to viewport.
    Example
    This example sets the setColumnResizable method.
    sheet.setRowResizable(3,false,GC.Spread.Sheets.SheetArea.viewport);
    sheet.setColumnResizable(3,false,GC.Spread.Sheets.SheetArea.viewport);
    sheet.getRange(1,-1, 1, -1, GC.Spread.Sheets.SheetArea.viewport).resizable(false);
    sheet.getRange(-1, 1, -1, 1, GC.Spread.Sheets.SheetArea.viewport).resizable(false);
    See Also

    Reference

    Worksheet type