TreeView.OnNodeMouseClick(TreeNodeMouseClickEventArgs) TreeView.OnNodeMouseClick(TreeNodeMouseClickEventArgs) TreeView.OnNodeMouseClick(TreeNodeMouseClickEventArgs) TreeView.OnNodeMouseClick(TreeNodeMouseClickEventArgs) Method

Definición

Genera el evento NodeMouseClick.Raises the NodeMouseClick event.

protected:
 virtual void OnNodeMouseClick(System::Windows::Forms::TreeNodeMouseClickEventArgs ^ e);
protected virtual void OnNodeMouseClick (System.Windows.Forms.TreeNodeMouseClickEventArgs e);
abstract member OnNodeMouseClick : System.Windows.Forms.TreeNodeMouseClickEventArgs -> unit
override this.OnNodeMouseClick : System.Windows.Forms.TreeNodeMouseClickEventArgs -> unit
Protected Overridable Sub OnNodeMouseClick (e As TreeNodeMouseClickEventArgs)

Parámetros

Comentarios

Cuando se genera un evento, se invoca el controlador de eventos a través de un delegado.Raising an event invokes the event handler through a delegate. Para obtener más información, consulte controlar y provocar eventos.For more information, see Handling and Raising Events.

El método OnNodeMouseClick también permite que las clases derivadas controlen el evento sin adjuntar ningún delegado.The OnNodeMouseClick method also allows derived classes to handle the event without attaching a delegate. Ésta es la técnica preferida para controlar el evento en una clase derivada.This is the preferred technique for handling the event in a derived class.

Notas a los desarrolladores de herederos

Al reemplazar OnNodeMouseClick(TreeNodeMouseClickEventArgs) en una clase derivada, asegúrese de llamar al método OnNodeMouseClick(TreeNodeMouseClickEventArgs) de la clase base para que los delegados registrados reciban el evento.When overriding OnNodeMouseClick(TreeNodeMouseClickEventArgs) in a derived class, be sure to call the base class's OnNodeMouseClick(TreeNodeMouseClickEventArgs) method so that registered delegates receive the event.

Se aplica a