TCustomRichViewEdit.PasteBitmap

<< Click to display table of contents >>

TCustomRichViewEdit.PasteBitmap

Inserts a bitmap image from the Clipboard at the caret position.

function PasteBitmap(TextAsName: Boolean): Boolean;

Windows:

This method does nothing if the Clipboard does not contain Windows bitmap;

It inserts a new picture item with bitmap (TBitmap) 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).

Other OS:

On platforms other than Windows, this method inserts a raster image from the clipboard. It is not necessarily in bitmap format.

Method type: editstyle editing-style method for insertion.

Supported platforms: Windows (VCL, LCL, FireMonkey), macOS (FireMonkey)

Return value:

True, if an image was inserted.

See also methods:

Paste;

PasteGraphic;

PasteGraphicFile;

PasteMetafile;

InsertPicture.

See also properties:

DefaultPictureVAlign.

See also:

RichView and Clipboard.