Proprietà Document.Parent (System 2007)

Aggiornamento: novembre 2007

Ottiene l'oggetto padre del documento.

Spazio dei nomi:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)

Sintassi

<BrowsableAttribute(False)> _
Public ReadOnly Property Parent As Object

Dim instance As Document
Dim value As Object

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

Valore proprietà

Tipo: System.Object

Oggetto padre del documento.

Esempi

Nell'esempio di codice riportato di seguito viene illustrato come visualizzare un messaggio contenente l'oggetto padre del documento.

Questo esempio è per una personalizzazione a livello di documento.

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());
}

Autorizzazioni

Vedere anche

Riferimenti

Document Classe

Membri Document

Spazio dei nomi Microsoft.Office.Tools.Word