KeyEventArgs Class
Provides data for the KeyDown or KeyUp event.
Definition
Members Table
The following table lists the members exposed by the KeyEventArgs object. Click a tab on the left to choose the type of member you want to view.
Methods
| Method | Description |
|---|
| Equals | Overloaded. Compares two objects to determine if they are equal. (Inherited from Object) |
| GetHashCode | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| KeyEventArgs | Initializes a new instance of KeyEventArgs. |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object) |
| ToString | Returns a String that represents the current Object. (Inherited from Object) |
Properties
| Property | Description |
|---|
| Alt | Gets a value indicating whether the ALT key was pressed. |
| Control | Gets a value indicating whether the CTRL key was pressed. |
| Handled | Gets or sets a value indicating whether the event was handled. |
| KeyCode | Gets the keyboard code for a KeyDown or KeyUp event. |
| KeyData | Gets the key data for a KeyDown or KeyUp event. |
| KeyValue | Gets the keyboard value for a KeyDown or KeyUp event. |
| Modifiers | Gets the modifier flags for a KeyDown or KeyUp event. This indicates which combination of modifier keys (CTRL, SHIFT, and ALT) were pressed. |
| Shift | Gets a value indicating whether the SHIFT key was pressed. |
Fields
| Field | Description |
|---|
| Empty | Represents an event with no event data. (Inherited from EventArgs) |
Inheritance Hierarchy
Object
Class Information
| Namespace | System.Windows.Forms |
|---|
| Flash Library | System.Windows.Forms.scl |
|---|
| Flash Library Version | 2.0.0.2118 |
|---|
| Silverlight Library | System.Windows.Forms.dll |
|---|