Udostępnij za pośrednictwem


DocumentBase.MailEnvelope Property

Gets an MsoEnvelope that represents an e-mail header for a 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 MailEnvelope As MsoEnvelope
    Get
public MsoEnvelope MailEnvelope { get; }

Property Value

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

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

DocumentBase Class

Microsoft.Office.Tools.Word Namespace