Vcl.DBCtrls.TDBRichEdit.PlainText
Delphi
property PlainText: Boolean read GetPlainText write SetPlainText default 0;
C++
__property PlainText = {default=0};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | Vcl.DBCtrls.pas Vcl.DBCtrls.hpp |
Vcl.DBCtrls | TDBRichEdit |
Description
Controls whether the rich edit control treats the text as plain text or rich text when streaming to or from a file.
Vcl.DBCtrls.TDBRichEdit.PlainText inherits from Vcl.ComCtrls.TCustomRichEdit.PlainText. All content below this line refers to Vcl.ComCtrls.TCustomRichEdit.PlainText.
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