<< Click to display table of contents >> TCustomRichView.InsertRVFFromStream |
Inserts RVF content from Stream at the position of the document specified as Index (the first inserted item will have this index)
function InsertRVFFromStream(Stream: TStream; Index: Integer): Boolean;
This is the only method of RichView (not RichViewEdit) inserting items in any position.
Index – index of the item, must be in range from 0 to ItemCount. Items of subdocuments (table cells) are not included in the items range of the main document.
Method type: viewer-style.
Setting for RVF loading can be changed in the TRichView component editor.
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: "Was reading successful?"
See also properties:
▪RVFTextStylesReadMode (this method type: RVF insertion);
▪RVFParaStylesReadMode (this method type: RVF insertion).
See also events:
▪OnControlAction (ControlAction=rvcaAfterRVFLoad);
See also methods:
▪LoadRVF;
▪Format;
See also methods of TRichViewEdit:
▪See also: