GcSpread.Sheets.UndoRedo Namespace > ColumnResizeUndoAction type : ColumnResizeUndoAction Constructor |
column.firstCol | number type | The index of the first column in the contiguous selection. |
column.lastCol | number type | The index of the last column in the contiguous selection. |
var instance = new GcSpread.Sheets.UndoRedo.ColumnResizeUndoAction(sheet, columns, size, rowHeader);
column.firstCol | number type | The index of the first column in the contiguous selection. |
column.lastCol | number type | The index of the last column 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 columns = [ { firstCol: 3, lastCol: 5 } ]; spread.allowUndo(true); var action = new GcSpread.Sheets.UndoRedo.ColumnResizeUndoAction(activeSheet, columns, 50, false); activeSheet.doCommand(action); }); <input type="button" id="button1" value="button1"/>