Condividi tramite


Metodo ToolGesture.Matches

Restituisce un valore che indica se questa azione corrisponde a un evento di input.

Spazio dei nomi:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Sintassi

'Dichiarazione
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

Parametri

  • targetElement
    Tipo: System.Object
    Elemento di destinazione per questo movimento.

Valore restituito

Tipo: System.Boolean
true se questo movimento corrisponde all'evento di input; in caso contrario, false.

Eccezioni

Eccezione Condizione
ArgumentNullException

inputEventArgs è nullriferimento null (Nothing in Visual Basic).

Sicurezza di .NET Framework

Vedere anche

Riferimenti

ToolGesture Classe

Spazio dei nomi Microsoft.Windows.Design.Interaction

Altre risorse

Informazioni sull'estensibilità Progettazione WPF