KeyboardEventHandler 代理人
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表要將處理鍵盤相關路由事件的方法。
public delegate void KeyboardEventHandler(System::Object ^ sender, KeyboardEventArgs ^ e);
C#
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
附加事件處理常式的物件。
事件資料。
WPF 中沒有現有的鍵盤事件會使用 KeyboardEventHandler 委派。 KeyboardEventHandler KeyboardEventArgs會使用基類做為其事件數據類別。 KeyboardEventArgs 做為更特定 KeyEventArgs 和 KeyboardFocusChangedEventArgs 事件數據類別的基類。 這些事件資料類別由 KeyEventHandler 和 KeyboardFocusChangedEventHandler 委派使用,而這些委派則由現有的 WPF 事件使用,例如 UIElement.KeyDown 和 UIElement.LostKeyboardFocus。
Get |
取得表示特定委派所代表之方法的物件。 |
產品 | 版本 |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |