SpreadJS Documentation
wordWrap Method
Set to true to let text wrap in the cells in the row.
Gets or sets whether text can wrap in the cells in the row.
Syntax
var instance = new GcSpread.Sheets.Row(sheet, index, sheetArea);
var returnValue; // Type: boolean
returnValue = instance.wordWrap(value);
function wordWrap( 
   value : boolean
) : boolean;

Parameters

value
Set to true to let text wrap in the cells in the row.

Return Value

true if the text can wrap; otherwise, false.
Example
This example sets word wrap to false.
activeSheet.getRow(2).wordWrap(false);
Remarks
You can enter multiple lines with Alt+Enter if the wordWrap method is true for the cell.
See Also

Reference

Row type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.