_MailItem.RTFBody Property

Returns or sets a byte array that represents the body of the Microsoft Outlook item in Rich Text Format. Read/write.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
Property RTFBody As Object
    Get
    Set
'Usage
Dim instance As _MailItem
Dim value As Object

value = instance.RTFBody

instance.RTFBody = value
[DispIdAttribute()]
Object RTFBody { get; set; }

Property Value

Type: System.Object

Remarks

You can use the System.Text.Encoding.AsciiEncoding.GetString() method in C# or Visual Basic to convert an array of bytes to a string.

See Also

Reference

_MailItem Interface

_MailItem Members

Microsoft.Office.Interop.Outlook Namespace