Share via


Document.MailEnvelope Property (2007 System)

Gets an MsoEnvelope that represents an e-mail header for a 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 MailEnvelope As MsoEnvelope
'Usage
Dim instance As Document 
Dim value As MsoEnvelope 

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

Property Value

Type: MsoEnvelope
An MsoEnvelope that represents an e-mail header for a document.

Examples

The following code example adds text to the e-mail header of a document and then displays the e-mail header.

This example is for a document-level customization.

Private Sub DocumentMailEnvelope()
    Me.MailEnvelope.Introduction = "Please review " & _
        "this document and let me know what you think." 
    Me.ActiveWindow.EnvelopeVisible = True 
End Sub
private void DocumentMailEnvelope()
{
    this.MailEnvelope.Introduction = "Please review " +
    "this document and let me know what you think.";
    this.ActiveWindow.EnvelopeVisible = true;

}

.NET Framework Security

See Also

Reference

Document Class

Document Members

Microsoft.Office.Tools.Word Namespace