[]
Represents a key being typed on the keyboard.
It contains both a character code for the key and a modifier
(Alt, Ctrl, Shift, or a combination).
public struct Keystroke : ISerializable
Public Structure Keystroke
Implements ISerializable
Name | Description |
---|---|
Keystroke(char) | Creates a new keystroke with the specified character. |
Keystroke(SerializationInfo, StreamingContext) | Creates a new keystroke from serialization. |
Keystroke(Keys, Keys) | Creates a new keystroke with a specified a key code and modifier keys. |
Keystroke(Keys, Keys, bool) | Creates a new keystroke with a specified a key code, modifier keys, and whether the keystroke is active on key release. |
Name | Description |
---|---|
KeyChar | Gets the character defined by this keystroke. |
KeyCode | Gets the key code defined by this keystroke. |
Modifiers | Gets the modifier keys defined by this keystroke. |
OnKeyRelease | Gets whether the keystroke is active on key release. |
Name | Description |
---|---|
Equals(object) | Determines whether an object is equal to the current one. |
GetObjectData(SerializationInfo, StreamingContext) | Populates the SerializationInfo class with information about the keystroke (Keystroke object). |
ToString() | Returns a string that represents the keystroke. |
Name | Description |
---|---|
operator ==(Keystroke, Keystroke) | Determines whether two keystrokes (KeyStroke structures) are equal. |
operator !=(Keystroke, Keystroke) | Determines whether two keystrokes (KeyStroke structures) are not equal. |