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
- targetElement
Typ: System.Object
Cílový prvek pro tento tah.
- inputEventArgs
Typ: System.Windows.Input.InputEventArgs
Vstupní události porovnat s Tento tah.
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
- Plná důvěra přímému volajícímu. Částečně zabezpečený kód nemůže tento člen použít. Další informace naleznete v tématu Používání knihoven z částečně důvěryhodného kódu.
Viz také
Odkaz
Microsoft.Windows.Design.Interaction – obor názvů