StylusEventHandler StylusEventHandler StylusEventHandler StylusEventHandler Delegate

定義

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

參數

sender
Object Object Object Object

事件的來源。The source of the event.

繼承
StylusEventHandlerStylusEventHandlerStylusEventHandlerStylusEventHandler

範例

下列範例示範如何使用StylusEventHandler指定的處理常式的委派StylusDown事件。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

擴充方法

GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate)

取得表示特定委派所代表之方法的物件。Gets an object that represents the method represented by the specified delegate.

適用於