How to calculate width of TextObject?

There has a TextObject to show multiline string. I want change it width to show 40 words each line.
So I will calculate width of a TextObject which has 40 words.
How can I do?

Comments

  • edited 9:08PM
    Hello,

    The Text object has "AutoWidth" property that allows to display the longest line in a text without wordwrap. Is this what you need?
  • edited 9:08PM
    AlexTZ wrote: »
    Hello,

    The Text object has "AutoWidth" property that allows to display the longest line in a text without wordwrap. Is this what you need?
    This can't do, I want show multiline String, e.g. 40*2
  • edited 9:08PM
    In this case, you need to calculate (somehow) the width of a string and set the text object's Width property. It can be done in the TextObject.BeforePrint event.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.