DecodedText Property  

Set the value of the current decoded text string, or return the decoded value of an encoded string.


object.DecodedText [= value ]


The DecodedText property is used to specify the decoded value of a string, or return the decoded value of a previously encoded string. If the property is set, the current plain (decoded) text is changed to that value and reading the EncodedText property will return the encoded string for this value. If the property is read, it will return the decoded value of the EncodedText property.

The control will use the value of the Encoding property to determine how the text should be decoded. Note that only base64 and quoted-printable encoding is supported when decoding a string using this property. To decode the contents of a file, it's recommended that you use the DecodeFile method.

This property only supports decoding text which was previously encoded using the ASCII or UTF-8 character set. If you need to decode text which used a different character set, you should use the DecodeText method in the Mail Message control. It is a component which is used to create and parse MIME formatted messages, and it is capable of decoding text that was encoded using a variety of different character sets.

Data Type


See Also

EncodedText Property, Encoding Property, DecodeFile Method, DecodeText Method