KeyEventArgs Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides event data for various key up and key down events.
public ref class KeyEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65540)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class KeyEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65540)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class KeyEventArgs
Public NotInheritable Class KeyEventArgs
- Inheritance
- Attributes
Properties
Handled |
Gets or sets whether the associated key up and key down event has been handled. |
KeyStatus |
Gets the status of the physical key press that raised the character-received event. |
Timestamp |
Gets the time when the keyboard input occurred. |
VirtualKey |
Gets the virtual-key that maps to the key that was pressed. |