Compartilhar via


RtfToHtml.OutputEncoding property

The OutputEncoding property gets or sets a Encoding object that represents the encoding to use when writing HTML output.

Namespace:  Microsoft.Exchange.Data.TextConverters
Assembly:  Microsoft.Exchange.Data.Common (in Microsoft.Exchange.Data.Common.dll)

Syntax

'Declaration
Public Property OutputEncoding As Encoding
    Get
    Set
'Usage
Dim instance As RtfToHtml
Dim value As Encoding

value = instance.OutputEncoding

instance.OutputEncoding = value
public Encoding OutputEncoding { get; set; }

Property value

Type: System.Text.Encoding

Remarks

The OutputEncoding property is only applicable when the output data is pushed by this RtfToHtml object into a Stream object or pulled from this EnrichedToHtml object using a readable ConverterStream object. It is not applicable when output data are pushed into a TextWriter object or pulled through a ConverterReader object.

If the OutputEncoding property is not set or is set to a null reference (Nothing in Visual Basic), the current effective input code page is used for output.

The OutputEncoding property can only be set before conversion begins.

See also

Reference

RtfToHtml class

RtfToHtml members

Microsoft.Exchange.Data.TextConverters namespace