Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a single XML node on a document that exposes events and that can be bound to data.
[System.Runtime.InteropServices.Guid("29b82cde-df64-4c6f-a64f-87561e588ecb")] public interface XMLNode : IDisposable, System.ComponentModel.IComponent, System.ComponentModel.ISupportInitialize, System.Windows.Forms.IBindableComponent
When you map non-repeating schema elements onto a Microsoft Office Word document at design time, Visual Studio creates an XMLNode control for each elements that are allowed to appear only once in a document. A non-repeating schema element is an element with the
maxOccurs attribute set to 1.
XMLNode 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 XMLNode Control and How to: Add XMLNode Controls to Word Documents.
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.
Gets the name of the XMLNode control without any prefix.
Gets the application in which the XMLNode control was created.
Gets a value that indicates whether the XMLNode control has child elements.
Gets the level of the XMLNode control.
Gets the Uniform Resource Identifier (URI) of the schema namespace for the XMLNode control.
Gets or sets the text value of the XMLNode control.
Gets a value that indicates whether an XMLNode is an attribute or an element.
Gets or sets the value of an XMLNode that represents an attribute.
Gets or sets the text displayed for an XMLNode control that contains no text.
Gets or sets the plain unformatted text of the XMLNode control.
Gets a string that represents the description for a validation error on an XMLNode control.
Gets a value that specifies whether an element or attribute is valid according to the attached schema.
Gets an XML string that represents the XMLNode in the Microsoft Office Word Open XML format.
Gets a string that represents the XML text in the XMLNode control.
Copies the contents of the XMLNode control to the Clipboard.
Removes the contents of the XMLNode control and places the contents onto the Clipboard.
Updates an XMLNode control with data from the specified XML file
Populates an XMLNode control with data from the specified XML string.
Removes the specified child element from the XMLNode control.
|SelectNodes(String, String, Boolean)|
|SelectSingleNode(String, String, Boolean)|
|SetValidationError(WdXMLValidationStatus, Object, Boolean)||
Changes the validation error text displayed to a user for an XMLNode control and forces Microsoft Office Word to report a node as invalid.
Validates an individual XMLNode control against the attached XML schema or schemas.
Occurs when the user adds a new XMLNode control to the document.
Occurs when the user deletes an XMLNode control from the document, before the control is deleted.
Occurs when the cursor is placed inside an XMLNode or one of its descendent nodes, from an area outside of the context of the node.
Occurs when the cursor is moved from the XMLNode control, or one of its descendent nodes, to an area outside of the context of the original node.
Occurs when the cursor is moved out of the XMLNode control.
Occurs when the cursor is placed inside an XMLNode control.
Occurs when there is a validation error in the XMLNode control.