Share via


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

適用於

另請參閱