StylusEventHandler Delegate

Definition

Representa el método que controla un evento de lápiz óptico de una clase que implementa la interfaz 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)

Parameters

sender
Object

El origen del evento.The source of the event.

e
StylusEventArgs

Datos del evento.The event data.

Inheritance
StylusEventHandler

Examples

En el ejemplo siguiente se muestra cómo utilizar el delegado StylusEventHandler para designar un controlador para el evento 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

Extension Methods

GetMethodInfo(Delegate)

Obtiene un objeto que representa el método representado por el delegado especificado.Gets an object that represents the method represented by the specified delegate.

Applies to