Condividi tramite


Proprietà XMLNode.ChildNodeSuggestions

Ottiene un insieme XMLChildNodeSuggestions che rappresenta gli elementi che possono essere validi elementi figlio del controllo XMLNode corrente.

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

Sintassi

'Dichiarazione
ReadOnly Property ChildNodeSuggestions As XMLChildNodeSuggestions
    Get
XMLChildNodeSuggestions ChildNodeSuggestions { get; }

Valore proprietà

Tipo: Microsoft.Office.Interop.Word.XMLChildNodeSuggestions
Insieme XMLChildNodeSuggestions che rappresenta gli elementi che possono essere validi elementi figlio del controllo XMLNode corrente.

Note

Ciascun oggetto XMLChildNodeSuggestion presente in un insieme XMLChildNodeSuggestions rappresenta un elemento dell'elenco di elementi XML consentiti nella parte inferiore del riquadro attività Struttura XML.

Esempi

Nell'esempio di codice seguente viene utilizzata la proprietà ChildNodeSuggestions per aggiungere tutti gli elementi figlio di un oggetto XMLNode. In questo esempio si suppone che il documento corrente contenga un oggetto XMLNode denominato CustomerNode.

Private Sub AddChildNodesFromSuggestions()
    Dim suggestion1 As Word.XMLChildNodeSuggestion
    For Each suggestion1 In Me.CustomerNode.ChildNodeSuggestions
        suggestion1.Insert()
    Next suggestion1
End Sub
private void AddChildNodesFromSuggestions()
{
    foreach (Word.XMLChildNodeSuggestion suggestion1 in 
        this.CustomerNode.ChildNodeSuggestions)
    {
        suggestion1.Insert(ref missing);
    }
}

Sicurezza di .NET Framework

Vedere anche

Riferimenti

XMLNode Interfaccia

Spazio dei nomi Microsoft.Office.Tools.Word