KeyEventArgs Class
Provides information specific to a keyboard event.
Definition
Namespace: Avalonia.Input
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public class KeyEventArgs : RoutedEventArgs
Public Class KeyEventArgs
Inherits RoutedEventArgs
type KeyEventArgs =
class
inherit RoutedEventArgs
end
| Inheritance | Object → EventArgs → RoutedEventArgs → KeyEventArgs |
Constructors
| KeyEventArgs() | Initializes a new instance of the KeyEventArgs class |
Properties
| Handled | Gets or sets a value indicating whether the routed event has already been handled. (Inherited from RoutedEventArgs) |
| Key | Gets the virtual-key for the associated event. For example, when pressing the key located at the |
| KeyDeviceType | Type of the device that fire the event |
| KeyModifiers | Gets the key modifiers for the associated event. |
| KeySymbol | Gets the unicode symbol of the key, or null if none is applicable. For example, when pressing the key located at the |
| PhysicalKey | Gets the physical key for the associated event. This value is independent of the current keyboard layout and usually correspond to the key printed on a standard US English QWERTY keyboard. |
| Route | Gets or sets the routing strategy (direct, bubbling, or tunneling) of the routed event. (Inherited from RoutedEventArgs) |
| RoutedEvent | Gets or sets the routed event associated with these event args. (Inherited from RoutedEventArgs) |
| Source | Gets or sets the source object that raised the routed event. (Inherited from RoutedEventArgs) |
Methods
| Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
| GetHashCode() | Serves as the default hash function. (Inherited from Object) |
| GetType() | Gets the Type of the current instance. (Inherited from Object) |
| MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object) |
| ToString() | Returns a string that represents the current object. (Inherited from Object) |