Hello,
There is a way to get all text from a line in RichEdit, but how to do this in richViewEdit?
In RichEdit I only do this:
Var
S : String;
Begin
S := RichEdit.Lines[0];
ShowModal(S)
End;
And in RichViewEdit?
Thanks
How to get all the text of a line from richviewEdit?
-
- Posts: 184
- Joined: Wed Jan 18, 2012 6:22 pm
-
- Site Admin
- Posts: 17572
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
You can use the functions from RVGetTextW.pas (or RVGetText.pas, if you need ANSI text).
Code: Select all
function GetCurrentLineText(rve: TCustomRichViewEdit): TRVUnicodeString;
function GetCurrentParaText(rve: TCustomRichViewEdit): TRVUnicodeString;
-
- Posts: 184
- Joined: Wed Jan 18, 2012 6:22 pm
-
- Site Admin
- Posts: 17572
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Posts: 184
- Joined: Wed Jan 18, 2012 6:22 pm