Skip to main content
Mitul_Golakiya
Participant
December 25, 2010
Question

line count of the spark TextArea

  • December 25, 2010
  • 1 reply
  • 783 views

Hi,

I want to get the count the lines of the spark TextArea...

Please help me...

This topic has been closed for replies.

1 reply

Adobe Employee
January 4, 2011

I'm not sure how to do this -- you might want to ask this question on the Flex forum. You can get the height of the component in pixels, as you can any other Flex component. But depending on how TextArea uses TLF, I'm guessing that the line count that was used to generate the text may not have been preserved. As a quick and dirty method, you could try counting the TextLine children of the component as a DisplayObjectContainer.

- robin