StylusEventHandler 委托

定义

表示处理实现 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

事件源。The source of the event.

e
StylusEventArgs

事件数据。The event data.

继承
StylusEventHandler

示例

下面的示例演示如何使用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)

获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate.

适用于