SpreadJS Documentation
RowResizeUndoAction Constructor
The sheet.
The resize rows; each item is an object.
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.
The size of the row that is being resized.
Whether the row being resized is in the column header area.
Represents the undo actions for resizing a row on a sheet.
Syntax
var instance = new GcSpread.Sheets.UndoRedo.RowResizeUndoAction(sheet, rows, size, columnHeader);
function RowResizeUndoAction( 
   sheet : Sheet,
   rows : Array,
   size : number,
   columnHeader : boolean
) : RowResizeUndoAction;

Parameters

sheet
The sheet.
rows
The resize rows; each item is an object.
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.
size
The size of the row that is being resized.
columnHeader
Whether the row being resized is in the column header area.
Example
This example resizes rows.
//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"/>
See Also

Reference

RowResizeUndoAction type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.