Partager via


DocumentBase.Email Property

Definition

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

public:
 property Microsoft::Office::Interop::Word::Email ^ Email { Microsoft::Office::Interop::Word::Email ^ get(); };
public Microsoft.Office.Interop.Word.Email Email { get; }
member this.Email : Microsoft.Office.Interop.Word.Email
Public ReadOnly Property Email As Email

Property Value

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