SpreadJS Documentation
ClearRangeValueUndoAction Constructor
The sheet on which to clear values.
The clear value cell range.
Represents a clear range value undo action on the sheet.
Syntax
var instance = new GcSpread.Sheets.UndoRedo.ClearRangeValueUndoAction(sheet, clearRange);
function ClearRangeValueUndoAction( 
   sheet : Sheet,
   clearRange : Range
) : ClearRangeValueUndoAction;

Parameters

sheet
The sheet on which to clear values.
clearRange
The clear value cell range.
Example
This example clears a range.
//Add data
for (var col = 1; col < 6; col++) {
    for (var row = 2; row < 11; row++) {
        activeSheet.setValue(row, col, row + col);
    }
}

$("#button1").click(function () {
spread.allowUndo(true);
var srange = new GcSpread.Sheets.Range(10, 5, 1, 1);
var action = new GcSpread.Sheets.UndoRedo.ClearRangeValueUndoAction(activeSheet, srange);
activeSheet.doCommand(action);
    });

<input type="button" id="button1" value="button1"/>
See Also

Reference

ClearRangeValueUndoAction type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.