XMLNodes Interface
TOC
Collapse the table of content
Expand the table of content

XMLNodes Interface

 

A collection of Microsoft.Office.Interop.Word.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 (in Microsoft.Office.Tools.Word.dll)

[GuidAttribute("23ba8297-db6f-48b4-8730-8056ebde2d56")]
public interface XMLNodes : IDisposable, ISupportInitialize

NameDescription
System_CAPS_pubpropertyApplication

Gets a Microsoft.Office.Interop.Word.Application object that represents the Microsoft Office Word application.

System_CAPS_pubpropertyContainer

System_CAPS_pubpropertyCount

Gets the number of items in the XMLNodes collection.

System_CAPS_pubpropertyCreator

Gets the application in which the XMLNodes control was created.

System_CAPS_pubpropertyInnerObject

Gets a Microsoft.Office.Interop.Word.XMLNodes that represents the underlying native object for the XMLNodes control.

System_CAPS_pubpropertyItem[Int32]

Gets the Microsoft.Office.Interop.Word.XMLNode at the specified index.

System_CAPS_pubpropertyParent

Gets a Microsoft.Office.Interop.Word.Document that represents the document containing the XMLNodes collection.

System_CAPS_pubpropertyTag

This API supports the product infrastructure and is not intended to be used directly from your code.

NameDescription
System_CAPS_pubmethodAdd(String, String, Object)

Gets a Microsoft.Office.Interop.Word.XMLNode object that represents a newly added element.

System_CAPS_pubmethodBeginInit()

(Inherited from ISupportInitialize.)

System_CAPS_pubmethodDispose()

(Inherited from IDisposable.)

System_CAPS_pubmethodEndInit()

(Inherited from ISupportInitialize.)

System_CAPS_pubmethodGetEnumerator()

Gets the enumerator for the XMLNodes control.

NameDescription
System_CAPS_pubeventAfterInsert

Occurs when the user adds a new Microsoft.Office.Interop.Word.XMLNode to the collection or to one of its descendents.

System_CAPS_pubeventBeforeDelete

Occurs when the user deletes a Microsoft.Office.Interop.Word.XMLNode or descendent node from the collection, before the control is deleted.

System_CAPS_pubeventContextEnter

Occurs when the cursor is placed inside one of the nodes or descendant nodes of the XMLNodes collection, from an area outside of the context of the node.

System_CAPS_pubeventContextLeave

Occurs when the cursor is moved from one of the nodes or descendant nodes of the XMLNodes collection, to an area outside of the context of the original node.

System_CAPS_pubeventDeselect

Occurs when the cursor is moved out of one of the nodes of the XMLNodes collection.

System_CAPS_pubeventSelect

Occurs when the cursor is placed inside one of the nodes of the XMLNodes collection.

System_CAPS_pubeventValidationError

Occurs when there is a validation error in the XMLNodes control.

The XMLNodes control represents a collection of XML elements with the same name. When you map elements that the schema allows to appear more than once onto a Microsoft Office Word document at design time, Visual Studio creates XMLNodes for the elements. A schema can allow an element to appear more than once when the maxOccurs attribute of the element or the element's ancestors is set to > 1.

If the schema sets the maxOccurs attribute for the element and its ancestors to 1, Visual Studio creates an XMLNode control instead.

XMLNodes controls can be created only in Word document-level projects at design time. They cannot be created at run time or in application-level projects. For more information, see XMLNodes Control and How to: Add XMLNodes Controls to Word Documents.

System_CAPS_noteNote

This interface is implemented by the Visual Studio Tools for Office runtime. It is not intended to be implemented in your code. For more information, see Visual Studio Tools for Office Runtime Overview.

This documentation describes the version of this type that is used in Office projects that target the .NET Framework 4 or later. In projects that target the .NET Framework 3.5, this type might have different members and the code examples provided for this type might not work. For documentation about this type in projects that target the .NET Framework 3.5, see the following reference section in the Visual Studio 2008 documentation: http://go.microsoft.com/fwlink/?LinkId=160658.

Return to top
Show:
© 2016 Microsoft