SpreadJS Documentation
wordWrap Method
Set to true to let text wrap within the cell.
Gets or sets whether the cell lets text wrap.
Syntax
var instance = new GcSpread.Sheets.Cell(sheet, row, col, sheetArea);
var returnValue; // Type: boolean
returnValue = instance.wordWrap(value);
function wordWrap( 
   value : boolean
) : boolean;

Parameters

value
Set to true to let text wrap within the cell.

Return Value

true if the text can wrap within the cell; otherwise, false.
Example
This example uses the wordWrap method.
activeSheet.getCell(1,1).wordWrap(true);
Remarks
You can enter multiple lines with Alt+Enter if the wordWrap method is true for the cell.
See Also

Reference

Cell type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.