XMLNodes Class (2007 System)

A collection of XMLNode objects that represent the nodes in the tree view of the XML Structure task pane, which indicates the elements that a user has applied to a document.

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

Syntax

'Declaration
<PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")> _
Public NotInheritable Class XMLNodes _
    Inherits RemoteComponent _
    Implements ISupportInitializeControl, ISupportInitialize
'Usage
Dim instance As XMLNodes
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public sealed class XMLNodes : RemoteComponent, 
    ISupportInitializeControl, ISupportInitialize
[PermissionSetAttribute(SecurityAction::Demand, Name = L"FullTrust")]
public ref class XMLNodes sealed : public RemoteComponent, 
    ISupportInitializeControl, ISupportInitialize
public final class XMLNodes extends RemoteComponent implements ISupportInitializeControl, ISupportInitialize

Remarks

XMLNodes is a control representing a collection of XML elements with the same name. Visual Studio Tools for Office creates XMLNodes for elements that the schema allows to appear more than once in the document, either because they have maxOccurs > 1 or because some of their ancestors do.

If the schema specifies maxOccurs = 1 for the node and its ancestors, Visual Studio Tools for Office creates an XMLNode control instead.

For more information, see XMLNodes Control and How to: Add XMLNodes Controls to Word Documents.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Tools.Office.RemoteComponent
    Microsoft.Office.Tools.Word.XMLNodes

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

XMLNodes Members

Microsoft.Office.Tools.Word Namespace

Other Resources

XMLNodes Control

How to: Add XMLNodes Controls to Word Documents