StylusEventHandler Delegato

Definizione

Rappresenta il metodo che gestisce un evento dello stilo per una classe che implementa l'interfaccia IInputElement.

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)

Parametri

sender
Object

Origine dell'evento.

e
StylusEventArgs

Dati dell'evento.

Esempio

Nell'esempio seguente viene illustrato come usare il StylusEventHandler delegato per designare un gestore per l'evento StylusDown .

button1.StylusDown += new StylusDownEventHandler(button1_StylusDown);
AddHandler button1.StylusDown, AddressOf button1_StylusDown

Metodi di estensione

GetMethodInfo(Delegate)

Ottiene un oggetto che rappresenta il metodo rappresentato dal delegato specificato.

Si applica a