ITextConverter.Export

Syntax

Export(Text: String; Format: TextFormat);

Parameters

Text. Text that must be converted.

Format. Format, to which text is converted.

Description

The Export method converts the passed text to the specified format.

Comments

The formats, from which text can be converted, are given in the TextFormat enumeration.

Example

The specified function is used to convert the passed text in the HTML format into the text in the RTF format.

Function HtmlToRtf(html: String): String;
Var
    Converter: ITextConverter;
Begin
    Converter := New TextConverter.Create;
    Return Converter.Export(html, TextFormat.Rtf);
End Function HtmlToRtf;

After the function is executed, the text is converted from the HTML format into the RTF format.

See also:

ITextConverter