Sdílet prostřednictvím


ToolGesture.Matches – metoda

Vrátí hodnotu označující, zda tento tah odpovídá vstupní události.

Obor názvů:  Microsoft.Windows.Design.Interaction
Sestavení:  Microsoft.Windows.Design.Interaction (v Microsoft.Windows.Design.Interaction.dll)

Syntaxe

'Deklarace
Public Overrides Function Matches ( _
    targetElement As Object, _
    inputEventArgs As InputEventArgs _
) As Boolean
public override bool Matches(
    Object targetElement,
    InputEventArgs inputEventArgs
)
public:
virtual bool Matches(
    Object^ targetElement, 
    InputEventArgs^ inputEventArgs
) override
abstract Matches : 
        targetElement:Object * 
        inputEventArgs:InputEventArgs -> bool 
override Matches : 
        targetElement:Object * 
        inputEventArgs:InputEventArgs -> bool 
public override function Matches(
    targetElement : Object, 
    inputEventArgs : InputEventArgs
) : boolean

Parametry

Vrácená hodnota

Typ: System.Boolean
true Pokud tento tah odpovídá vstupní události; jinak false.

Výjimky

Výjimka Podmínka
ArgumentNullException

inputEventArgsis nullodkaz Null (Nothing v jazyce Visual Basic).

Zabezpečení rozhraní .NET Framework

Viz také

Odkaz

ToolGesture Třída

Microsoft.Windows.Design.Interaction – obor názvů

Další zdroje

Understanding WPF Designer Extensibility