TCustomRichViewEdit.InsertRVFFromFileEd

<< Click to display table of contents >>

TCustomRichViewEdit.InsertRVFFromFileEd

Inserts RVF (RichView Format) from the file FileName at the position of caret.

function InsertRVFFromFileEd(const FileName: TRVUnicodeString):Boolean;

(changed in version 18)

Settings for RVF loading can be changed in the TRichView component editor.

Method type: editstyle editing-style method for insertion.

If style templates are used, and RVFTextStylesReadMode=RVFParaStylesReadMode=rvf_sInsertMerge, and StyleTemplateInsertMode<>rvstimIgnoreSourceStyleTemplates, the method merges style templates from RVF into Style.StyleTemplates, and reads text and paragraph styles according to StyleTemplateInsertMode. The method calls OnStyleTemplatesChange event.

Return value: "successful insertion?"

 

See also methods of TRichViewEdit:

InsertRVFFromStreamEd;

PasteRVF.

See also methods of TRichView:

LoadRVF.

See also properties:

RVFOptions;

RVFWarnings;

RVFTextStylesReadMode (this method type: RVF insertion);

RVFParaStylesReadMode (this method type: RVF insertion);

UseStyleTemplates;

StyleTemplateInsertMode.

See also events:

OnRVFImageListNeeded;

OnRVFControlNeeded;

OnRVFPictureNeeded;

OnControlAction (ControlAction=rvcaAfterRVFLoad).

See also:

TRichView component editor;

Saving and loading;

Inserting items at position of caret;

RVF.