GcSpread.Sheets.UndoRedo Namespace > ClearValueUndoAction type : ClearValueUndoAction Constructor |
var instance = new GcSpread.Sheets.UndoRedo.ClearValueUndoAction(sheet, ranges);
function ClearValueUndoAction( sheet : Sheet, ranges : Array ) : ClearValueUndoAction;
//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.ClearValueUndoAction(activeSheet, srange); activeSheet.doCommand(action); }); <input type="button" id="button1" value="button1"/>