SpreadJS Documentation
clear Method
GC.Spread.Sheets Namespace > CellRange type : clear Method
The clear type.
Clears the specified area.
Syntax
var instance = new GC.Spread.Sheets.CellRange(sheet, row, col, rowCount, colCount, sheetArea);
var value; // Type: any
value = instance.clear(type);
function clear( 
   type : StorageType
) : any;

Parameters

type
The clear type.
Example
This example clears a style.
activeSheet.getRange(2, -1, 1, -1, GC.Spread.Sheets.SheetArea.viewport).backColor("lightblue");
//button click
$("#button1").click(function () {
activeSheet.getRange(2, -1, 1, -1, GC.Spread.Sheets.SheetArea.viewport).clear(GC.Spread.Sheets.StorageType.style);
    });
Remarks
The type is the GC.Spread.Sheets.StorageType enumeration.
See Also

Reference

CellRange type
StorageType Enumeration