DocumentBase.Parent Property


Gets the parent object of the document.

Namespace:   Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

public object Parent { get; }

Property Value

Type: System.Object

The parent object of the document.

The following code example displays a message that shows the parent of the document. To use this example, run it from the ThisDocument class in a document-level project.

private void DocumentParent()
    MessageBox.Show("The parent of the document is: " +
Return to top