rvico TRichView Reference | TRichViewEdit

TCustomRichViewEdit.PasteMetafile

Top  Previous  Next

Inserts metafile from the Clipboard in the position of caret

function PasteMetafile(TextAsName: Boolean): Boolean;

This method does nothing if the Clipboard does not contain a Windows metafile.

It inserts a new picture item with metafile (TMetafile) from the Clipboard; if TextAsName=True and the Clipboard contains text, it sets name of this item to the text from the Clipboard (warning: if you want to save this document to RVF, names of items should not contain CR and LF characters).

Method type: editstyle editing-style method for insertion.

unicode Unicode note: names of non-text items are ANSI strings.

Return value:

True, if image was inserted.

See also methods:

Paste;

InsertPicture.

See also properties:

DefaultPictureVAlign.

See also:

RichView and Clipboard.


TRichView © trichview.com