StyledTextContent.getLineCount

Return the number of lines. Should answer 1 when no text is specified. The StyledText widget relies on this behavior for drawing the cursor. <p>

@return the number of lines. For example: <ul> <li> text value is> getLineCount <li> null is> 1 <li> "" is> 1 <li> "a\n" is> 2 <li> "\n\n" is> 3 </ul>

interface StyledTextContent
int
getLineCount
(
)

Meta