RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomRichEdit.DefaultConverter Property

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.

Pascal
property DefaultConverter: TConversionClass;
C++
__property TConversionClass DefaultConverter;

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.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!