| Visual Basic (Declaration) | |
|---|---|
Public Event AfterSelect() As AfterNodeSelectEventHandler | |
| C# | |
|---|---|
public event AfterNodeSelectEventHandler AfterSelect() | |
The event handler receives an argument of type SelectEventArgs containing data related to this event. The following SelectEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| NewSelections | The new SelectedNodesCollection. (read-only) |
The SelectEventArgs.NewSelections property contains a collection of the currently selected nodes. If a single UltraTreeNode was selected, accessing NewSelections[0] returns the new selected UltraTreeNode.
The following sample code illustrates some of the information available in the AfterSelect event.
For an overview of how to handle events in Visual Basic or Visual C#, see Event Handlers in Visual Basic and Visual C#. For specific information and code examples illustrating how to consume events in your application, see Consuming Events in the .NET Framework Developer's Guide.
For an overview of how to handle events in Visual Basic or Visual C#, see Event Handlers in Visual Basic and Visual C#. For specific information and code examples illustrating how to consume events in your application, see Consuming Events in the .NET Framework Developer's Guide.
| Visual Basic | Copy Code |
|---|---|
Imports Infragistics.Win.UltraWinTree | |
| C# | Copy Code |
|---|---|
using System.Diagnostics; | |
