Thanks Alex. Have created bug report SDK-13316 in Jira. Cheers,
Paul. On 02/11/2007, Alex Harui <[EMAIL PROTECTED]> wrote: > > That's not an exposed API. Probably worth filing a bug as your not the > first to ask for it. > > > > For now, subclass Text and get to the underlying TextField > > > ------------------------------ > > *From:* [email protected] [mailto:[EMAIL PROTECTED] *On > Behalf Of *Paul Booth > *Sent:* Friday, November 02, 2007 10:39 AM > *To:* [email protected] > *Subject:* [flexcoders] mx:Text - how to get number of lines of text? > > > > Hi, > > I have an mx:Text control and I want to know the length of the last line. > I can do this with the following: > > var metrics:TextLineMetrics = myTextControl.getLineMetrics > (indexOfLastLine); > > Trouble is, I don't the right value for 'indexOfLastLine' because I don't > know how many lines there are in the text control. I'm assuming I'm missing > something obvious, can someone tell me how to get the number of lines? > > Thanks, > > Paul. > > >

