rvico TRichView Reference | TRichView

TCustomRichView.GetSelText, GetSelTextW

Top  Previous  Next

These methods return the selected part of the document as a text.

function GetSelText: String;

function GetSelTextA: TRVAnsiString;

function GetSelTextW: TRVUnicodeString;

If there is nothing selected, these methods return '' (empty string)

unicode Unicode notes:

Internally, text is stored as Unicode. GetSelTextA (and GetSelText in non-Unicode versions of Delphi) converts Unicode to ANSI using Style.DefCodePage code page.

These methods must be called only when the document is formatted.


See also:

Working with selection.

TRichView © trichview.com