SpreadJS Documentation
wordWrap Method
Set to true to let text wrap in the cells.
Gets or sets whether text wraps in the cells in the column.
Syntax
var instance = new GcSpread.Sheets.Column(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.

Return Value

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

Reference

Column type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.