Document.Parent Property (2007 System)

Gets the parent object of the document.

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 ReadOnly Property Parent As Object
'Usage
Dim instance As Document 
Dim value As Object 

value = instance.Parent
[BrowsableAttribute(false)]
public Object Parent { get; }
[BrowsableAttribute(false)]
public:
property Object^ Parent {
    Object^ get ();
}
public function get Parent () : Object

Property Value

Type: System.Object
The parent object of the document.

Examples

The following code example displays a message that shows the parent of the document.

This example is for a document-level customization.

Private Sub DocumentParent()
    MessageBox.Show("The parent of the document is: " & Me.Parent.ToString())
End Sub
private void DocumentParent()
{
    MessageBox.Show("The parent of the document is: " +
        this.Parent.ToString());
}

.NET Framework Security

See Also

Reference

Document Class

Document Members

Microsoft.Office.Tools.Word Namespace