DocumentBase.HasRoutingSlip 屬性

取得或設定值,指出文件是否已附加傳閱名單。

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

語法

'宣告
Public Property HasRoutingSlip As Boolean
    Get
    Set
public bool HasRoutingSlip { get; set; }

屬性值

型別:System.Boolean
如果文件已附加傳閱名單則為 true,否則為 false。

備註

將此屬性設定為 true 會建立傳閱名單,設定為 false 則會刪除傳閱名單。

範例

下列程式碼範例會建立文件的傳閱名單,並且填入主旨和收件者。 然後程式碼再將文件傳送給收件者。 若要使用這個範例,請在文件層級專案中的 ThisDocument 類別執行。

Private Sub DocumentRoute()
    Me.HasRoutingSlip = True
    Me.RoutingSlip.Subject = "Your feedback is needed."
    Me.RoutingSlip.AddRecipient("someone@example.com")
    Me.Route()
End Sub 
private void DocumentRoute()
{
    this.HasRoutingSlip = true;
    this.RoutingSlip.Subject = "Your feedback is needed.";
    this.RoutingSlip.AddRecipient("someone@example.com");
    this.Route();
}

.NET Framework 安全性

請參閱

參考

DocumentBase 類別

Microsoft.Office.Tools.Word 命名空間