Share via


DocumentBase.MailEnvelope 屬性

取得 MsoEnvelope,表示文件的電子郵件標頭。

命名空間:  Microsoft.Office.Tools.Word
組件:  Microsoft.Office.Tools.Word.v4.0.Utilities (在 Microsoft.Office.Tools.Word.v4.0.Utilities.dll 中)

語法

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

屬性值

型別:Microsoft.Office.Core.MsoEnvelope
MsoEnvelope ,表示文件的電子郵件標頭。

範例

下列程式碼範例會將文字加入至文件的電子郵件標頭,然後顯示電子郵件標頭。 若要使用這個範例,請在文件層級專案中的 ThisDocument 類別執行。

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 安全性

請參閱

參考

DocumentBase 類別

Microsoft.Office.Tools.Word 命名空間