GcSpread.Sheets.UndoRedo Namespace > RowAutoFitUndoAction type : RowAutoFitUndoAction Constructor |
The following settings are available:
row.row | number type | The automatic fit row index. |
var instance = new GcSpread.Sheets.UndoRedo.RowAutoFitUndoAction(sheet, rows, rowHeader, autoFitType);
function RowAutoFitUndoAction( sheet : Sheet, rows : Array, rowHeader : boolean, autoFitType : AutoFitType ) : RowAutoFitUndoAction;
The following settings are available:
row.row | number type | The automatic fit row index. |
//Add data for (var col = 1; col < 6; col++) { for (var row = 2; row < 11; row++) { activeSheet.setValue(row, col, row + col); } } activeSheet.setRowHeight(3, 90.0,GcSpread.Sheets.SheetArea.viewport); $("#button1").click(function () { spread.allowUndo(true); var rows = [ { row: 3 } ]; var action = new GcSpread.Sheets.UndoRedo.RowAutoFitUndoAction(activeSheet, rows, false, GcSpread.Sheets.AutoFitType.Cell); activeSheet.doCommand(action); }); <input type="button" id="button1" value="button1"/>