ToolStripDropDown.OnClosing(ToolStripDropDownClosingEventArgs) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Déclenche l’événement Closing.
protected:
virtual void OnClosing(System::Windows::Forms::ToolStripDropDownClosingEventArgs ^ e);
protected virtual void OnClosing(System.Windows.Forms.ToolStripDropDownClosingEventArgs e);
abstract member OnClosing : System.Windows.Forms.ToolStripDropDownClosingEventArgs -> unit
override this.OnClosing : System.Windows.Forms.ToolStripDropDownClosingEventArgs -> unit
Protected Overridable Sub OnClosing (e As ToolStripDropDownClosingEventArgs)
Paramètres
Qui ToolStripDropDownClosingEventArgs contient les données d’événement.
Remarques
Le déclenchement d’un événement appelle le gestionnaire d’événements par le biais d’un délégué. Pour plus d’informations, consultez Gestion et déclenchement d’événements.
La OnClosing méthode permet également aux classes dérivées de gérer l’événement sans attacher de délégué. Il s’agit de la technique recommandée pour gérer l’événement dans une classe dérivée.
Notes pour les héritiers
En cas de OnClosing(ToolStripDropDownClosingEventArgs) substitution dans une classe dérivée, veillez à appeler la méthode de la classe de OnClosing(ToolStripDropDownClosingEventArgs) base afin que les délégués inscrits reçoivent l’événement.