Skip to main content
Known Participant
July 12, 2009
Question

How to get the height of the text in a Text Layout?

  • July 12, 2009
  • 1 reply
  • 775 views

Hey, I'm using the text layout and I read the documentation and now capable of doing almost all what I need. I just have a small problem. Lets say I have a text layout object on my stage containing some text. How can I know the height of the text or the number of lines in it ???

I found their is a porperty: "contentHeight"  and a method "calculateHeight()" but they are in another class of the libraries that comes with the text layout component. I don't know how to reach them. Please help and write me the lines of code that do this job.

Thanks

This topic has been closed for replies.

1 reply

Participating Frequently
July 13, 2009

Try textFlow.flowComposer.getControllerAt(0).getContentBounds()

Abhishek

(Adobe Systems Inc.)