TCustomRichView.CopyText, CopyTextA, CopyTextW

<< 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.

CopyTextA copies text in ANSI encoding. Text of Unicode styles is converted basing on TRVStyle.DefCodePage.

CopyTextW and CopyText copy text in Unicode encoding.

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 FireMonkey version).

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

See also:

Working with selection;

Working with Clipboard;

Unicode.