<< Click to display table of contents >> TCustomRichView.CopyText, CopyTextA, CopyTextW |
These methods copy the selected fragment to the Clipboard as text.
procedure CopyText;
procedure CopyTextA;
procedure CopyTextW;
These methods do nothing if there is nothing selected.
These methods clear the Clipboard before copying.
CopyTextW and CopyText copy text in Unicode encoding.
CopyTextA copies text in ANSI encoding. Text of Unicode styles is converted basing on TRVStyle.DefCodePage.
Since modern versions of Windows converts Unicode and ANSI texts in the Clipboard to each other, using CopyTextA does not make sense (and it is not available in non-Windows versions).
These methods must be called only when the document is formatted.
Alternatively, you can copy text as Markdown using CopyMarkdown method.
See also:
▪Unicode.