TextConverter.Convert Method

The Convert overload converts the entire contents of an input Stream or TextReader object to another format and either stores the results in an output Stream object or writes the results to a TextWriter.

Remarks

The Convert method is overridden in the conversions that derive from it to perform a particular conversion. For example, the RtfToHtml object uses its overridden Convert method to convert input Rich Text Format (RTF) into output HTML.

Overload List

Name Description
TextConverter.Convert (Stream, Stream)
The Convert method converts the entire contents of sourceStream from its format to the format specified by this TextConverter object and stores the result in destinationStream.
TextConverter.Convert (Stream, TextWriter)
The Convert method converts the entire contents of sourceStream from its format to the format of destinationWriter and writes the result to destinationWriter.
TextConverter.Convert (TextReader, Stream)
The Convert method converts the entire contents of sourceReader from its format to the format of destinationStream and stores the result in destinationStream.
TextConverter.Convert (TextReader, TextWriter)
The Convert method converts the entire contents of sourceReader from its format to the format of destinationWriter and writes the result to destinationWriter.