GcSpread.Sheets.UndoRedo Namespace > RowResizeUndoAction type : RowResizeUndoAction Constructor |
row.firstRow | number type | The index of the first row in the contiguous selection. |
row.lastRow | number type | The index of the last row in the contiguous selection. |
var instance = new GcSpread.Sheets.UndoRedo.RowResizeUndoAction(sheet, rows, size, columnHeader);
function RowResizeUndoAction( sheet : Sheet, rows : Array, size : number, columnHeader : boolean ) : RowResizeUndoAction;
row.firstRow | number type | The index of the first row in the contiguous selection. |
row.lastRow | number type | The index of the last row in the contiguous selection. |
//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 () { var rows = [ { firstRow: 3, lastRow: 5 } ]; spread.allowUndo(true); var action = new GcSpread.Sheets.UndoRedo.RowResizeUndoAction(activeSheet, rows, 50, false); activeSheet.doCommand(action); }); <input type="button" id="button1" value="button1"/>