KeyboardEventHandler KeyboardEventHandler KeyboardEventHandler KeyboardEventHandler Delegate

Definizione

Rappresenta il metodo che gestirà gli eventi indirizzati correlati alla tastiera.Represents the method that will handle keyboard-related routed events.

public delegate void KeyboardEventHandler(System::Object ^ sender, KeyboardEventArgs ^ e);
public delegate void KeyboardEventHandler(object sender, KeyboardEventArgs e);
type KeyboardEventHandler = delegate of obj * KeyboardEventArgs -> unit
Public Delegate Sub KeyboardEventHandler(sender As Object, e As KeyboardEventArgs)

Parametri

sender
Object Object Object Object

Oggetto a cui è associato il gestore eventi.The object where the event handler is attached.

Ereditarietà
KeyboardEventHandlerKeyboardEventHandlerKeyboardEventHandlerKeyboardEventHandler

Commenti

Nessun evento di tastiera esistente WPFWPF in utilizza KeyboardEventHandler il delegato.No existing keyboard event in WPFWPF uses the KeyboardEventHandler delegate. KeyboardEventHandlerUsa la KeyboardEventArgs classe base come classe di dati di evento.KeyboardEventHandler uses the KeyboardEventArgs base class as its event data class. KeyboardEventArgsfunge da classe base per le classi di dati KeyEventArgs di KeyboardFocusChangedEventArgs evento e più specifiche.KeyboardEventArgs serves as the base class for the more specific KeyEventArgs and KeyboardFocusChangedEventArgs event data classes. Queste classi di KeyEventHandler dati degli eventi vengono utilizzate dai delegati e KeyboardFocusChangedEventHandler e tali delegati WPFWPF vengono utilizzati UIElement.KeyDown dagli eventi UIElement.LostKeyboardFocusesistenti, ad esempio e.These event data classes are used by the KeyEventHandler and KeyboardFocusChangedEventHandler delegates, and those delegates are used by existing WPFWPF events such as UIElement.KeyDown and UIElement.LostKeyboardFocus.

Metodi di estensione

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

Ottiene un oggetto che rappresenta il metodo rappresentato dal delegato specificato.Gets an object that represents the method represented by the specified delegate.

Si applica a

Vedi anche