InputGesture.Matches(Object, InputEventArgs) 方法

定義

當在派生類別中覆寫時,判斷指定的輸入是否 InputGesture 與該物件 InputEventArgs 相關聯。

public:
 abstract bool Matches(System::Object ^ targetElement, System::Windows::Input::InputEventArgs ^ inputEventArgs);
public abstract bool Matches(object targetElement, System.Windows.Input.InputEventArgs inputEventArgs);
abstract member Matches : obj * System.Windows.Input.InputEventArgs -> bool
Public MustOverride Function Matches (targetElement As Object, inputEventArgs As InputEventArgs) As Boolean

參數

targetElement
Object

指揮的目標。

inputEventArgs
InputEventArgs

輸入事件資料用來比較這個手勢。

傳回

true如果手勢與輸入相符;否則,。 false

適用於

另請參閱