The event handler receives an argument of type TreeViewEventArgs containing data related to this event. The following TreeViewEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Action | Gets the type of action that raised the event. |
Node | Gets the tree node that has been checked, expanded, collapsed, or selected. |
The System.Windows.Forms.TreeViewEventArgs provides information about the selected item, enabling event handlers to access the item's properties and take appropriate actions, such as navigating to the corresponding section in the document.