Share via


DocumentBase.Email Property

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

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

Syntax

'Declaration
Public ReadOnly Property Email As Email
public Email Email { get; }

Property Value

Type: 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 Sub DocumentEmail()
    MessageBox.Show(Me.Email.CurrentEmailAuthor.Style.NameLocal)
End Sub
private void DocumentEmail()
{
    MessageBox.Show(this.Email.CurrentEmailAuthor.Style.NameLocal);
}

.NET Framework Security

See Also

Reference

DocumentBase Class

Microsoft.Office.Tools.Word Namespace