How get I full line text?

General TRichView support forum. Please post your questions here
Post Reply
jasper13
Posts: 2
Joined: Thu May 31, 2018 1:57 pm

How get I full line text?

Post 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!
Sergey Tkachenko
Site Admin
Posts: 17566
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: How get I full line text?

Post 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")
Post Reply