Właściwość DocumentBase.MailEnvelope —

Pobiera MsoEnvelope reprezentująca nagłówek wiadomości e-mail dla dokumentu.

Przestrzeń nazw:  Microsoft.Office.Tools.Word
Zestaw:  Microsoft.Office.Tools.Word.v4.0.Utilities (w Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

Składnia

'Deklaracja
Public ReadOnly Property MailEnvelope As MsoEnvelope
public MsoEnvelope MailEnvelope { get; }

Wartość właściwości

Typ: Microsoft.Office.Core.MsoEnvelope
MsoEnvelope Reprezentująca nagłówek wiadomości e-mail dla dokumentu.

Przykłady

Poniższy kod dodaje tekst do nagłówka wiadomości e-mail dokumentu, a następnie wyświetla nagłówek e-mail.Aby wykorzystać ten przykład, należy uruchomić go z klasy ThisDocument w projekcie na poziomie dokumentu.

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;

}

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

DocumentBase Klasa

Przestrzeń nazw Microsoft.Office.Tools.Word