lineCount

lineCount(): Integer;

The lineCount method of the JadeRichText, JadeTextEdit, and TextBox control classes returns the number of lines of text in a rich text control, text editor, or text box, respectively.

The number of lines may be greater than the number of lines that are displayed. (See also the lines method.)

This method returns the actual number of lines of text. If there is no text, the number of lines that are returned is still 1.