Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Number of text lines in TextArea

Is there a way to get number of lines TextArea currently holding? 

Developer
Posts: 28
Registered: ‎11-07-2013
My Device: 9790
My Carrier: VietNam

Re: Number of text lines in TextArea

get it Signal onTextChanging of TextArea

Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Number of text lines in TextArea

I don't see how it would help me.

Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: Number of text lines in TextArea

I think @AricLam meant counting '\n'-s in the text in this signal handler.

Andrey Fidrya, @zmeyc on twitter
Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Number of text lines in TextArea

There is no single /n. TextArea wraps text automatically if its size changes or if Font size changes.