ClickedEventArgs.Source Property
Definition
Important
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.
Gets an XPathNavigator object positioned at the innermost XML node of the form's underlying XML document that contains the Button control.
public:
abstract property System::Xml::XPath::XPathNavigator ^ Source { System::Xml::XPath::XPathNavigator ^ get(); };
public abstract System.Xml.XPath.XPathNavigator Source { get; }
member this.Source : System.Xml.XPath.XPathNavigator
Public MustOverride ReadOnly Property Source As XPathNavigator
Property Value
An XPathNavigator object positioned at the innermost XML node of the form's underlying XML document that contains the Button control.
Examples
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())
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.