Calculates count of logical lines.
function CalcLineCount(Exact: Boolean = False): integer;
In word-wrap mode one long line of text may occupy several logical lines. Exact parameter specifies how not analyzed lines should be processed. If Exact is False each not analyzed line is treated as single line, otherwise this line is analyzed and exact number of logical line is determined.