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

適用対象

こちらもご覧ください