Vcl.ComCtrls.TCustomRichEdit.RegisterConversionFormat
Delphi
class procedure RegisterConversionFormat(const AExtension: string; AConversionClass: TConversionClass);
C++
__classmethod void __fastcall RegisterConversionFormat(const System::UnicodeString AExtension, TConversionClass AConversionClass);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TCustomRichEdit |
Description
Registers an association between a file extension and a TConversion object that can convert between the native file format and rich text format (RTF).
Rich edit controls encode text attributes in RTF format. To read from or write to files that encode text attributes in some other format, a converter is required. The converter is a descendant of TConversion that translates between the native file format and RTF when the text is streamed in or out. RegisterConversionFormat sets up an association between a file extension and a converter, so that all attempts to stream between a file with that extension and a rich edit control automatically invoke the appropriate converter.
Note: Use the Lines property to stream the text to or from a file.