We recommend using Visual Studio 2017

XmlEvents.Item Property (String) (Microsoft.Office.InfoPath)

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)

public abstract XmlEvent this [
	string xpath
] { get; }

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.

ImportantImportant:

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.

Show: