SpreadJS Documentation
GC.Spread.Sheets Namespace / CellRange type / clear Method
The clear type.
In This Topic
    clear Method
    In This Topic
    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