|
TCustomRichView.LoadRTFFromStream |
Top Previous Next |
|
Appends the content of RTF (Rich Text Format) stream Stream to the document. function LoadRTFFromStream(Stream: TStream):Boolean; (Introduced in version 1.5) Despite its name, this method does not clear the existing document before loading. To replace the current document with the content of this file, call Clear method before loading (and may be DeleteUnusedStyles after Clear) Method type: Parameters for loading are in TRichView.RTFReadProperties. The most important properties affecting RTF loading are RTFReadProperties.TextStyleMode and ParaStyleMode. The imported RTF may look absolutely different depending on values of these properties! Setting for RTF loading can be changed in the TRichView component editor. See important note on loading external images from RTF. By default, hyperlinks are not loaded. You can load them using OnReadHyperlink event. Return value: "Was reading successful?" (extended information is in TRichView.RTFReadProperties.ErrorCode)
See also methods of TRichView:
See also events of TRichView: See also methods of TRichViewEdit: See also: |