Document.Email Property (2007 System)

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.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public ReadOnly Property Email As Email
'Usage
Dim instance As Document 
Dim value As Email 

value = instance.Email
[BrowsableAttribute(false)]
public Email Email { get; }
[BrowsableAttribute(false)]
public:
property Email^ Email {
    Email^ get ();
}
public function get Email () : Email

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.

This example is for a document-level customization.

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

Document Class

Document Members

Microsoft.Office.Tools.Word Namespace