rvico TRichView Reference | TRichViewEdit

TCustomRichViewEdit.Paste

Top  Previous  Next

Pastes document from the Clipboard.

procedure Paste;

First, it generates OnPaste event, allowing the programmer to insert data in custom format.

If DoDefault parameter of OnPaste was set to False, Paste finishes.

Next, it tries to paste as RVF, see PasteRVF.

Next, it tries to paste as RTF, see PasteRTF.

If unsuccessful, it tries to paste as text, see PasteText and PasteTextW (if the current text style is ANSI, it uses PasteText; if Unicode – PasteTextW).

If unsuccessful, it tries to paste image files, see PasteGraphicFile.

If unsuccessful, it tries to paste as picture, see PasteBitmap.

This method is executed automatically when user presses  Ctrl + V  or  Shift + Insert .

Method type: editstyle editing-style method for insertion.

See also methods:

CanPaste.

See also:

RichView and Clipboard.


RichView © Sergey Tkachenko