Export (0) Print
Expand All

ClickedEventArgs.Source Property

Gets an XPathNavigator object positioned at the innermost XML node of the form's underlying XML document that contains the Button control.

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

Property Value

An XPathNavigator object positioned at the innermost XML node of the form's underlying XML document that contains the Button control.

After you have set a reference to the XPathNavigator object that the Source property returns, you can use the properties and methods that are supported by the XPathNavigator class.

In the following example, the Source property is used to return an XPathNavigator object, which is then used to display the of the innermost XML node of the form's underlying XML document that contains the Button control.

MessageBox.Show(e.Source.OuterXml.ToString());

Community Additions

Show:
© 2014 Microsoft