SpreadJS Documentation
RowAutoFitUndoAction Constructor
The sheet.
The automatically resized rows; each item is an object.

The following settings are available:

row.row number type The automatic fit row index.
Determines whether the resized columns are in the column header area.
Determines whether the auto-fit action includes the header text.
Represents the undo actions for automatically resizing a row in a sheet.
Syntax
var instance = new GcSpread.Sheets.UndoRedo.RowAutoFitUndoAction(sheet, rows, rowHeader, autoFitType);
function RowAutoFitUndoAction( 
   sheet : Sheet,
   rows : Array,
   rowHeader : boolean,
   autoFitType : AutoFitType
) : RowAutoFitUndoAction;

Parameters

sheet
The sheet.
rows
The automatically resized rows; each item is an object.

The following settings are available:

row.row number type The automatic fit row index.
rowHeader
Determines whether the resized columns are in the column header area.
autoFitType
Determines whether the auto-fit action includes the header text.
Example
This example automatically resizes a row.
//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"/>
See Also

Reference

RowAutoFitUndoAction type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.