quantity of paragraphes in RichEdit
How to get quantity of paragraphes in Delphi RichEdit. Or When I walk through the rows of RichEdit, how to detect that I jump from one paragraph to another one.
I mean:
I mean:
- Code: Select all
var
s : String;
for i := 0 to ARichEdit.Lines.Count - 1 do // walking through the rows
begin
s := ARichEdit.Lines[i]; // Here ARichEdit.Lines[i] belongs to
// paragraph number 5, for exaple;
// How to detect that ARichEdit.Lines[i + 1] will
// belong to paragraph number 6???
end;