DocumentBase.Parent Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the parent object of the document.
public object Parent { get; }
Property Value
The parent object of the document.
Examples
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: " +
this.Parent.ToString());
}
Private Sub DocumentParent()
MessageBox.Show("The parent of the document is: " & Me.Parent.ToString())
End Sub