SpreadJS 13
GC.Spread.Sheets Namespace / CellRange type / width Method
The column width.
In This Topic
    width Method
    In This Topic
    Gets or sets the width of the column in pixels.
    Syntax
    var instance = new GC.Spread.Sheets.CellRange(sheet, row, col, rowCount, colCount, sheetArea);
    var returnValue; // Type: any
    returnValue = instance.width(value);
    function width( 
       (optional) value : number
    ) : any;

    Parameters

    value
    The column width.

    Return Value

    If no value is set, returns the column width; otherwise, returns the column.
    Example
    This example sets the column width.
    activeSheet.getCell(-1, 0).width(20);
    Remarks
    The default value is 62 pixels.
    See Also

    Reference

    CellRange type