Share via


DocumentBase.MailEnvelope Property

Definition

Gets an MsoEnvelope that represents an e-mail header for a document.

public:
 property Microsoft::Office::Core::MsoEnvelope ^ MailEnvelope { Microsoft::Office::Core::MsoEnvelope ^ get(); };
public Microsoft.Office.Core.MsoEnvelope MailEnvelope { get; }
member this.MailEnvelope : Microsoft.Office.Core.MsoEnvelope
Public ReadOnly Property MailEnvelope As MsoEnvelope

Property Value

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. To use this example, run it from the ThisDocument class in a document-level project.

private void DocumentMailEnvelope()
{
    this.MailEnvelope.Introduction = "Please review " +
    "this document and let me know what you think.";
    this.ActiveWindow.EnvelopeVisible = true;

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

Applies to