@brief Wrap text in a cell.
Turn text wrapping on for text in a cell.
@code format = workbook_add_format(workbook); format_set_text_wrap(format);
worksheet_write_string(worksheet, 0, 0, "Some long text to wrap in a cell", format); @endcode
If you wish to control where the text is wrapped you can add newline characters to the string:
worksheet_write_string(worksheet, 0, 0, "It's\na bum\nwrap", format); @endcode
@image html format_font_text_wrap.png
Excel will adjust the height of the row to accommodate the wrapped text. A similar effect can be obtained without newlines using the format_set_align() function with #LXW_ALIGN_VERTICAL_JUSTIFY.
See Implementation
@brief Wrap text in a cell.
Turn text wrapping on for text in a cell.
@code format = workbook_add_format(workbook); format_set_text_wrap(format);
worksheet_write_string(worksheet, 0, 0, "Some long text to wrap in a cell", format); @endcode
If you wish to control where the text is wrapped you can add newline characters to the string:
@code format = workbook_add_format(workbook); format_set_text_wrap(format);
worksheet_write_string(worksheet, 0, 0, "It's\na bum\nwrap", format); @endcode
@image html format_font_text_wrap.png
Excel will adjust the height of the row to accommodate the wrapped text. A similar effect can be obtained without newlines using the format_set_align() function with #LXW_ALIGN_VERTICAL_JUSTIFY.