KeyboardEventHandler KeyboardEventHandler KeyboardEventHandler KeyboardEventHandler Delegate

定義

代表要將處理鍵盤相關路由事件的方法。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)

參數

sender
Object Object Object Object

附加事件處理常式的物件。The object where the event handler is attached.

繼承
KeyboardEventHandlerKeyboardEventHandlerKeyboardEventHandlerKeyboardEventHandler

備註

WPFWPFKeyboardEventHandler現有鍵盤事件不會使用委派。No existing keyboard event in WPFWPF uses the KeyboardEventHandler delegate. KeyboardEventHandlerKeyboardEventArgs使用基類作為其事件資料類別。KeyboardEventHandler uses the KeyboardEventArgs base class as its event data class. KeyboardEventArgs作為更特定KeyEventArgsKeyboardFocusChangedEventArgs事件資料類別的基類。KeyboardEventArgs serves as the base class for the more specific KeyEventArgs and KeyboardFocusChangedEventArgs event data classes. 這些事件資料類別是由KeyEventHandlerKeyboardFocusChangedEventHandler委派使用, 而這些委派是UIElement.KeyDown由和UIElement.LostKeyboardFocus之類的WPFWPF現有事件所使用。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.

擴充方法

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

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

適用於

另請參閱