HotXLS Docs

WrapText property

True if the text are wrapped. Read/write OleVariant.

Syntax

property WrapText: OleVariant;

Remarks

Microsoft Excel will change the row height of the range, if necessary, to accommodate the text in the range.

Example

This example formats cell B2 on sheet one so that the text wraps within the cell.

With Workbook.Sheets[1].Range['B2', 'B2'] do begin
  Value := 'This text should wrap in a cell';
  WrapText := true;
end;