Share via


XmlEvents.Item Property (String)

Gets an XmlEvent from the XmlEvents collection for binding an event handler by specifying the XPath of the underlying XML document node that can raise the event.

Namespace: Microsoft.Office.InfoPath
Assembly: Microsoft.Office.InfoPath (in microsoft.office.infopath.dll)

Syntax

'Declaration
'Usage

Parameters

  • xpath
    The XPath of the node to which the event handler is bound.

Property Value

The XmlEvent associated with the form node to which the event handler is bound.

Remarks

Important

The code to bind event handlers using the XmlEvents collection and XmlEvent class is not meant to be written by the developer in form code. The InternalStartup method and the event binding code within it are generated by InfoPath when you add event handlers using various user interface commands. You should not create the InternalStartup method or write any additional code within it yourself. For information about how to add event handlers using interface commands, see How to: Add an Event Handler.

See Also

Reference

XmlEvents Class
XmlEvents Members
Microsoft.Office.InfoPath Namespace