Vcl.ComCtrls.TCustomRichEdit.PlainText
Delphi
property PlainText: Boolean read GetPlainText write SetPlainText default False;
C++
__property bool PlainText = {read=GetPlainText, write=SetPlainText, default=0};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | protected | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TCustomRichEdit |
Description
Controls whether the rich edit control treats the text as plain text or rich text when streaming to or from a file.
To write the rich text in the control to a plain text file, set PlainText to true before streaming the text to a file. To ignore the rich text information encoded in a file, set PlainText to true before streaming the text to the control. To stream in the rich text attributes encoded in a file, or save the encoding of the rich text attributes to a file, set PlainText to false.
If the rich text attributes of a file are encoded in some format other than rich text format (RTF), it is necessary to use a converter on the text, even when PlainText is true.
Note: Rich edit controls do not directly support streaming. Use the Lines property to stream to or from a file.
See Also
Code Examples