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

Parameters

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

Return Value

true if the users can resize the specified row; otherwise, false.
Example
This example gets whether the row 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));
Remarks

See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.