GcSpread.Sheets.UndoRedo Namespace > ClearRangeValueUndoAction type : ClearRangeValueUndoAction Constructor |
var instance = new GcSpread.Sheets.UndoRedo.ClearRangeValueUndoAction(sheet, clearRange);
function ClearRangeValueUndoAction( sheet : Sheet, clearRange : Range ) : ClearRangeValueUndoAction;
//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"/>