TextBuffer.getLineCount

int getLineCount()

Obtains the number of lines in the buffer. This value is cached, so the function is very fast.

Returns

number of lines in the buffer