SpreadJS Documentation
setColumnCount Method
The column count.
The sheet area. If this parameter is not given, it defaults to viewport.
Sets the column count in the specified sheet area.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var value; // Type: any
value = instance.setColumnCount(colCount, sheetArea);
function setColumnCount( 
   colCount : number,
   sheetArea : SheetArea
) : any;

Parameters

colCount
The column count.
sheetArea
The sheet area. If this parameter is not given, it defaults to viewport.
Example
This example sets the number of columns.
sheet.setRowCount(4,1);
sheet.setColumnCount(4,2);
sheet.addSpan(0,0,3,3,GcSpread.Sheets.SheetArea.colHeader);
sheet.addSpan(0,0,3,3,GcSpread.Sheets.SheetArea.rowHeader);
sheet.addSpan(0,0,3,3,GcSpread.Sheets.SheetArea.viewport);
See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.