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.

e
KeyboardEventArgs KeyboardEventArgs KeyboardEventArgs KeyboardEventArgs

イベントのデータ。The event data.

継承
KeyboardEventHandlerKeyboardEventHandlerKeyboardEventHandlerKeyboardEventHandler

注釈

既存のキーボード イベントWPFWPFを使用して、KeyboardEventHandlerを委任しません。No existing keyboard event in WPFWPF uses the KeyboardEventHandler delegate. KeyboardEventHandler 使用して、KeyboardEventArgs基底クラスのイベント データ クラスとします。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デリゲート、およびそれらのデリゲートを使って既存のWPFWPFイベントなどUIElement.KeyDownUIElement.LostKeyboardFocusThese 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.

適用対象

こちらもご覧ください