_MailItem.BodyFormat Property

Returns or sets an OlBodyFormat constant indicating the format of the body text. Read/write.

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

Syntax

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

value = instance.BodyFormat

instance.BodyFormat = value
[DispIdAttribute()]
OlBodyFormat BodyFormat { get; set; }

Property Value

Type: Microsoft.Office.Interop.Outlook.OlBodyFormat

Remarks

The body text format determines the standard used to display the text of the message. Microsoft Outlook provides three body text format options: Plain Text, Rich Text (RTF), and HTML.

All text formatting will be lost when the BodyFormat property is switched from RTF to HTML and vice-versa.

See Also

Reference

_MailItem Interface

_MailItem Members

Microsoft.Office.Interop.Outlook Namespace