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.

The method takes AcceptPasteFormats property into account: it tries to paste the specific format only if it is included in the property.

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

If unsuccessful, it tries to paste as RTF, see PasteRTF.

If unsuccessful, it tries to paste as an URL, see PasteURL.

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

If unsuccessful, it tries to paste image files, see PasteGraphicFile (if rvoAssignImageFileNames in Options, file name is is stored in rvespImageFileName extra string property; you can modify this file name in OnAssignImageFileName event).

If unsuccessful, it tries to paste as a bitmap, see PasteBitmap.

If unsuccessful, it tries to paste as a metafile picture, see PasteMetafile.

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:

TRichView and Clipboard.


TRichView © trichview.com