Share via


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)

Syntax

'Declaration
'Usage

Property Value

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

Remarks

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.

Example

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());
MessageBox.Show(e.Source.OuterXml.ToString())

See Also

Reference

ClickedEventArgs Class
ClickedEventArgs Members
Microsoft.Office.InfoPath Namespace