HotXLS 文件

WrapText 屬性

文字已自動換行,則為 True。可讀寫 OleVariant

語法

property WrapText: OleVariant;

範例

此範例設定工作表一 A1:A5 儲存格的文字自動換行

範例

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;