Spread.Sheets Documentation
resizeRow Field
Represents the command used to resize the row on a worksheet.
* The command has a boolean field canUndo that indicates whether the command supports undo and redo operations, and an execute method that performs an execute or undo operation.
* The arguments of the execute method are as follows.
context {GC.Spread.Sheets.Workbook} The context of the operation.
options {Object} The options of the operation.
* options.sheetName {string} The sheet name.
* options.rows {Array} The resize rows; each item is an object which has firstRow and lastRow.
* options.size {number} The size of the row that is being resized.
* options.columnHeader {boolean} Whether the row being resized is in the column header area.
isUndo {boolean} true if this is an undo operation; otherwise, false.
Syntax
var value; // Type: resizeRow
value = GC.Spread.Sheets.Commands.resizeRow;
var resizeRow : resizeRow;
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.options.allowUndo = true;
spread.commandManager().execute({cmd: "resizeRow", sheetName: "Sheet1", rows: rows, size:50, isColHeader: false});
    });

<input type="button" id="button1" value="button1"/>
See Also

Reference

Commands type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.