_MailItem.HTMLBody property

Returns or sets a String (string in C#) representing the HTML body of the specified item. Read/write.

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

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

value = instance.HTMLBody

instance.HTMLBody = value

Property value

Type: System.String

The HTMLBody property should be an HTML syntax string.

Setting the HTMLBody property will always update the Body property immediately.

Show: