Document.HasRoutingSlip Property (2007 System)
Gets or sets a value that indicates whether the document has a routing slip attached to it.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)
Syntax
'Declaration
<BrowsableAttribute(False)> _
Public Property HasRoutingSlip As Boolean
'Usage
Dim instance As Document
Dim value As Boolean
value = instance.HasRoutingSlip
instance.HasRoutingSlip = value
[BrowsableAttribute(false)]
public bool HasRoutingSlip { get; set; }
[BrowsableAttribute(false)]
public:
property bool HasRoutingSlip {
bool get ();
void set (bool value);
}
public function get HasRoutingSlip () : boolean
public function set HasRoutingSlip (value : boolean)
Property Value
Type: System.Boolean
true if the document has a routing slip attached to it; otherwise, false.
Remarks
Setting this property to true creates a routing slip; setting it to false deletes the routing slip.
Examples
The following code example creates a routing slip for the document and fills in the subject and recipient. The code then routes the document to the recipient.
This example is for a document-level customization.
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 Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.