KeyGesture.Modifiers Property

Definition

Gets the modifier keys associated with this KeyGesture.

public:
 property System::Windows::Input::ModifierKeys Modifiers { System::Windows::Input::ModifierKeys get(); };
public System.Windows.Input.ModifierKeys Modifiers { get; }
member this.Modifiers : System.Windows.Input.ModifierKeys
Public ReadOnly Property Modifiers As ModifierKeys

Property Value

The modifier keys associated with the gesture. The default value is None.

Remarks

In most cases, a KeyGesture must be associated with one or more ModifierKeys. The exceptions to this rule are the function keys and the numeric keypad keys, which can be a valid KeyGesture by themselves. For example, you can create a KeyGesture by using only the F12 key, but to use the X key in a KeyGesture it must be paired with a modifier key.

Applies to

See also