Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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)
Syntax
'Declaration
Public ReadOnly Property Parent As Object
public Object Parent { get; }
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. To use this example, run it from the ThisDocument class in a document-level project.
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
- 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.