StylusEventHandler 代理人

定義

表示方法,這個方法處理與實作 IInputElement 介面之類別關聯的手寫筆事件。

C#
public delegate void StylusEventHandler(object sender, StylusEventArgs e);

參數

sender
Object

事件的來源。

e
StylusEventArgs

事件資料。

範例

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

C#
button1.StylusDown += new StylusDownEventHandler(button1_StylusDown);

擴充方法

GetMethodInfo(Delegate)

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

適用於

產品 版本
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9