TCustomRichView.OnAssignImageFileName

<< Click to display table of contents >>

TCustomRichView.OnAssignImageFileName

Occurs when inserting an image file in TRichView.

type

  TRVAssignImageFileNameEvent = procedure (Sender: TCustomRichView;

    var FileName: TRVUnicodeString) of object;

 

property OnAssignImageFileName: TRVAssignImageFileNameEvent;

(introduced in version 16; changed in version 18)

This event occurs if rvoAssignImageFileNames is included in Options.

In this event, you can modify FileName (for example, change a full path to a relative path).

This event may happen on:

•RTF loading (reading external images),

•DocX loading (reading external images),

•Markdown loading (reading external images),

•HTML loading (reading external images),

•pasting files, accepting files and links to images as a result of drag&drop,

•RichViewActions (actions for inserting images and assigning background images of tables).

The following properties are set:

•table.BackgroundImageFileName

•cell.BackgroundImageFileName

•rvespImageFileName extra item properties of pictures and hot-pictures.