StylusEventHandler Delegat

Definicja

Reprezentuje metodę, która obsługuje zdarzenie stylu dla klasy implementującej IInputElement interfejs.

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)

Parametry

sender
Object

Źródło zdarzenia.

e
StylusEventArgs

Dane dotyczące zdarzenia.

Przykłady

W poniższym przykładzie pokazano, jak użyć delegata StylusEventHandler do wyznaczenia procedury obsługi dla zdarzenia StylusDown .

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

Metody rozszerzania

GetMethodInfo(Delegate)

Pobiera obiekt reprezentujący metodę reprezentowaną przez określonego delegata.

Dotyczy