Vcl.ComCtrls.TCustomRichEdit.DefaultConverter

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property DefaultConverter: TConversionClass  read FDefaultConverter write FDefaultConverter;

C++

__property TConversionClass DefaultConverter = {read=FDefaultConverter, write=FDefaultConverter};

Properties

Type Visibility Source Unit Parent
property public
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TCustomRichEdit

Description

Specifies the class of the TConversion object that is used to convert between native file format and the internal format of a rich text control when working with files that do not have a registered extension.

Use DefaultConverter to specify the type of conversion to use when streaming text to or from files that do not have a registered extension. If DefaultConverter is not set, TCustomRichEdit uses TConversion, which performs no actual conversion. TCustomRichEdit encodes text attributes in rich-text format (RTF). Thus, unrecognized file extensions lead to no conversion, which works for files that contain plain text or any subset of RTF format.

To support streaming to or from files that encode rich text characteristics in some other format, register a conversion format with the file extension used by those files. Use DefaultConverter only to change the conversion that is used for unrecognized file extensions.

Note: Use the Lines property to stream the text to or from a file.

See Also