SpreadJS Documentation
getColumns Method
The column index.
The second column index.
The sheet area. If this parameter is not given, it defaults to viewport.
Gets a range of columns in the specified sheet area.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var value; // Type: Column
value = instance.getColumns(index, index2, sheetArea);
function getColumns( 
   index : number,
   index2 : number,
   sheetArea : SheetArea
) : Column;

Parameters

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

Return Value

The columns.
Example
This example sets the background color for the specified columns.
activeSheet.getColumns(1, 2, GcSpread.Sheets.SheetArea.viewport).backColor("red");
See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.