StylusEventHandler 代理人

定義

表示方法,這個方法處理與實作 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)

參數

sender
Object

事件的來源。

e
StylusEventArgs

事件資料。

範例

下列範例示範如何使用 StylusEventHandler 委派來指定 事件的處理程式 StylusDown

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

擴充方法

GetMethodInfo(Delegate)

取得表示特定委派所代表之方法的物件。

適用於