DocumentBase.Email Property

Definition

Gets an Email object that contains all the e-mail–related properties of the document.

public Microsoft.Office.Interop.Word.Email Email { get; }

Property Value

Email

An Email object that contains all the e-mail–related properties of the document.

Examples

The following code example displays the name of the style associated with the current e-mail author. This code assumes that the document is an unsent forward, reply, or new e-mail message. To use this example, run it from the ThisDocument class in a document-level project.

private void DocumentEmail()
{
    MessageBox.Show(this.Email.CurrentEmailAuthor.Style.NameLocal);
}
Private Sub DocumentEmail()
    MessageBox.Show(Me.Email.CurrentEmailAuthor.Style.NameLocal)
End Sub

Applies to