is there a possibility to count the number of lines in a TAdvRichEditor or do we have to count the CR LF ? We want to limit the number of lines and delete the first lines until we get to this limit. What's the best(and most performant way) way to do this?
You'd indeed need to count the TLineBreakElement instances in the content.
To make it easier, we have added a LineCount property that will be available in the next update.
Thanks for your answer.
And is it possible to delete a line, or does it have to be done manually by checking the TLineBreakElements as well?
There is no built-in function to delete a line by line number. You'd indeed have to manipulate AdvRichEditor.Context.Content and remove the elements matching with the n'th line from this.