Page 1 of 1

How get I full line text?

Posted: Tue Oct 08, 2019 1:04 pm
by jasper13
Hi all,

I try to get a line text in TRichviewEdit, there's a small problem.

a line is, Example...

This is a test line...

S := rve.GetItemText(0) -> result S) This is a test line...

And I Change TextStyle to BOLD(or Underline, etc...) at a word in a line, Example...

This is a test line...

S := rve.GetItemText(0) -> result S) This

and 'is a test line...' is Changed ItemNo = 1.

How get I full line text?

Thanks in advance!

Re: How get I full line text?

Posted: Tue Oct 08, 2019 4:02 pm
by Sergey Tkachenko
You can use the functions from RVGetTextW.pas:

- GetCurrentLineText - returns text from the current line (line bounds depend on word wrapping)
- GetCurrentParaText - returns text from the current paragraph (between breaks made by "Enter")
- GetCurrentParaSectionText - returns text from the current paragraph section (between breaks made by "Enter" or "Shift+Enter")