InputGesture.Matches(Object, InputEventArgs) 方法

定義

在衍生類別中覆寫時,判斷指定的 InputGesture 是否符合與指定之 InputEventArgs 物件相關聯的輸入。When overridden in a derived class, determines whether the specified InputGesture matches the input associated with the specified InputEventArgs object.

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

參數

targetElement
Object

命令的目標。The target of the command.

inputEventArgs
InputEventArgs

要和這個筆勢比較的輸入事件資料。The input event data to compare this gesture to.

傳回

如果筆勢與輸入相符,則為 true,否則為 falsetrue if the gesture matches the input; otherwise, false.

適用於

另請參閱