Checks if the given KeyEventArgs value includes the left or right Alt key.
Namespace:
Openfin.WPF
Assembly:
Openfin.WPF (in Openfin.WPF.dll) Version: 17.6.1
Syntaxpublic static bool IsAlt(
this KeyEventArgs args
)
Parameters
- args
- Type: System.Windows.InputKeyEventArgs
The key args.
Return Value
Type:
Booleantrue if either Alt key is pressed.
false otherwise.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
KeyEventArgs. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also