Vcl.ComCtrls.TRichEdit.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.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TRichEdit |
Description
Controls whether the rich edit control treats the text as plain text or rich text when streaming to or from a file. {{#multireplace:Vcl.ComCtrls.TRichEdit.PlainText|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:Vcl.ComCtrls.TCustomRichEdit.PlainText|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:Vcl.ComCtrls.TCustomRichEdit.PlainText|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.
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.