Hi ---
How are line breaks or line wrapping done?
Also, it seems like everything requires a size to be given. How do you know what the size is when you are using dynamic strings? I don't know if it will be 30 pixels high or a hundred. I just know it goes in a cell 100 pixels wide.
Can I just specify a row and cell without a height and have it grow as needed?
Last question, where is are code examples in the online help? I found the LineBreaker class and thought that might help me, but there was no code. Then I found the TextLine and TextLineList classes but again no code.
Thanks for the help!
--- Ken
Text Wrapping or Line Breaks
Re: Text Wrapping or Line Breaks
Support · Dec 1, 2006Hello Ken,
It is not possible to wrap the text in a cell directly, however you can accomplish this by adding the text to the TextArea or Label page element and then adding the TextArea or Label to the cell of the table. The text in the TextArea or Label will wrap without any problem. And the cell height will increase dynamically to fit the entire text. You can readjust the height of the TextArea by setting its height to the value returned by the GetRequiredHeight() method of the TextArea object.
You will have to specify the width of the Cell and it will grow in height dynamically to fit the entire text in it.
Thanks,
ceTe Software Support Team.