rvico TRichView Reference | TRichView

TCustomRichView.CopyText, CopyTextA, CopyTextW

Top  Previous  Next

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.

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

See also:

Working with selection;

Working with Clipboard;

Unicode.


TRichView © trichview.com