SpreadJS Documentation
getColumnResizable Method
The column index.
The sheet area. If this parameter is not given, it defaults to viewport.
Gets a value that indicates whether the user can resize a specified column in the specified sheet area.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var value; // Type: boolean
value = instance.getColumnResizable(col, sheetArea);
function getColumnResizable( 
   col : number,
   sheetArea : SheetArea
) : boolean;

Parameters

col
The column index.
sheetArea
The sheet area. If this parameter is not given, it defaults to viewport.

Return Value

true if the user can resize the specified column; otherwise, false.
Example
This example gets whether the column is resizable.
sheet.setRowCount(10);
sheet.setColumnCount(7);
sheet.setValue(0, 0,"Western");
sheet.setValue(0, 1,"Western");
sheet.setValue(0, 2,"Western");
sheet.setValue(1, 0,"A");
sheet.setValue(1, 1,"B");
sheet.setValue(1, 2,"C");
sheet.setColumnResizable(0,true, GcSpread.Sheets.SheetArea.colHeader);
sheet.setRowResizable(0,true, GcSpread.Sheets.SheetArea.rowHeader);
alert( sheet.getColumnResizable(0));
alert( sheet.getRowResizable(0, GcSpread.Sheets.SheetArea.rowHeader));
See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.