StylusEventHandler Délégué
Définition
Représente la méthode qui gère un événement de stylet pour une classe qui implémente l'interface IInputElement.Represents the method that handles a stylus event for a class that the implements the IInputElement interface.
public delegate void StylusEventHandler(System::Object ^ sender, StylusEventArgs ^ e);
public delegate void StylusEventHandler(object sender, StylusEventArgs e);
type StylusEventHandler = delegate of obj * StylusEventArgs -> unit
Public Delegate Sub StylusEventHandler(sender As Object, e As StylusEventArgs)
Paramètres
- sender
- Object
Source de l'événement.The source of the event.
Données d'événement.The event data.
- Héritage
Exemples
L’exemple suivant montre comment utiliser le StylusEventHandler délégué pour désigner un gestionnaire pour l' StylusDown événement.The following example demonstrates how to use the StylusEventHandler delegate to designate a handler for the StylusDown event.
button1.StylusDown += new StylusDownEventHandler(button1_StylusDown);
AddHandler button1.StylusDown, AddressOf button1_StylusDown
Méthodes d’extension
GetMethodInfo(Delegate) |
Obtient un objet qui représente la méthode représentée par le délégué spécifié.Gets an object that represents the method represented by the specified delegate. |