georgepatotk
Contributor
i need help in determine the 'lines of words' in Label.
I have a string in a Label, and the string will change dynamically.
I want to catch the number of lines for the words on everytime it changed.
For example:
I assign "Hello, world!"; the lines of words might be 1
If I assign with "Hello, world! I am the one who is in doubt. Please help me!"; then lines of words might goes to 3 because the wordwrap.
Please let me know on how to solve this problem.
Thank you in advance.
I have a string in a Label, and the string will change dynamically.
I want to catch the number of lines for the words on everytime it changed.
For example:
I assign "Hello, world!"; the lines of words might be 1
If I assign with "Hello, world! I am the one who is in doubt. Please help me!"; then lines of words might goes to 3 because the wordwrap.
Please let me know on how to solve this problem.
Thank you in advance.