InputEventHandler InputEventHandler InputEventHandler InputEventHandler Delegate

定義

代表要處理輸入相關路由事件的方法。Represents the method that handles input related routed events.

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

參數

sender
Object Object Object Object

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

e
InputEventArgs InputEventArgs InputEventArgs InputEventArgs

事件資料。The event data.

繼承
InputEventHandlerInputEventHandlerInputEventHandlerInputEventHandler

備註

中沒有任何現有WPFWPF的事件KeyboardEventHandler使用委派。No existing event in WPFWPF uses the KeyboardEventHandler delegate. 這個類別的事件資料類型, InputEventArgs是用於輸入之各種不同事件資料類別的基類。The event data type for this class, InputEventArgs, is the base class for various more specific event data classes for input. InputEventArgs定義輸入事件的事件資料屬性, 無論起始事件的裝置為何, 都是常見的。InputEventArgs defines the event data properties of input events that are common regardless of the device that initiated the event.

委派的範例會InputEventArgs KeyboardFocusChangedEventHandler使用衍生的事件資料, 並對應至現有的輸入事件。An example of a delegate that uses InputEventArgs derived event data and that corresponds to an existing input event is KeyboardFocusChangedEventHandler.

擴充方法

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

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

適用於