JVCL Help:TJvRichEdit.StreamMode
JVCL Help: TJvRichEdit.StreamMode Property
Search in JVCL Help
Search in all projectsSummary
Controls how the text is treated when streaming to or from a file.
Pascal
propertyStreamMode: TRichStreamModes;
Description
Use StreamMode to specify whether to
- Only replace the contents of the current selection when loading a stream, and to only stream out the contents of the current selection, when saving to a stream.
- Stream only keywords common to all languages in and out, i.e., ignore all language-specific RTF keywords.
- Replace COM objects with spaces when streaming out.
- Stream unicode text in and out.
Some flags are ignored depending on the value of StreamFormat. For example you must set StreamFormat to sfPlainText, or PlainText to true and StreamFormat to sfDefault to be able to stream unicode text in or out.)
See Also
TJvCustomRichEdit.PlainText, TJvCustomRichEdit.StreamFormat
About
Notes
Rich edit controls do not directly support streaming. Use the Lines property to stream to or from a file, For example to save the selected text as unicode to a file: with JvRichEdit1 do
try
StreamFormat := sfPlainText;
StreamMode := [smSelection, smUnicode];
Lines.SaveToFile(AFileName);
finally
StreamMode := [];
end;
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page