Table of Contents

Method HasKey

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

HasKey(KeyGesture?)

Determines whether the specified key gesture has the same Key and Modifiers as this instance.

public virtual bool HasKey(KeyGesture? gesture)

Parameters

gesture KeyGesture

The key gesture to check. Can be null.

Returns

bool

true if the specified key gesture has the same Key and Modifiers as this instance; otherwise, false. Returns false if gesture is null.

HasKey(Key, ModifierKeys)

Gets whether Key and Modifiers are equal to the values specified in the parameters.

public virtual bool HasKey(Key key, ModifierKeys modifiers)

Parameters

key Key
modifiers ModifierKeys

Returns

bool