[]
Creates a new keystroke from serialization.
public Keystroke(SerializationInfo info, StreamingContext context)
Public Sub New(info As SerializationInfo, context As StreamingContext)
Type | Name | Description |
---|---|---|
SerializationInfo | info | Object that holds the serialized object data |
StreamingContext | context | Contexual information about the source of the serialization |
Creates a new keystroke with the specified character.
public Keystroke(char keyChar)
Public Sub New(keyChar As Char)
Type | Name | Description |
---|---|---|
char | keyChar | Character defined by this keystroke |
Creates a new keystroke with a specified a key code and modifier keys.
public Keystroke(Keys keyCode, Keys modifiers)
Public Sub New(keyCode As Keys, modifiers As Keys)
Type | Name | Description |
---|---|---|
Keys | keyCode | Key code defined by this keystroke |
Keys | modifiers | Modifier keys defined by this keystroke |
Creates a new keystroke with a specified a key code, modifier keys, and whether the keystroke is active on key release.
public Keystroke(Keys keyCode, Keys modifiers, bool onKeyRelease)
Public Sub New(keyCode As Keys, modifiers As Keys, onKeyRelease As Boolean)
Type | Name | Description |
---|---|---|
Keys | keyCode | Key code defined by this keystroke |
Keys | modifiers | Modifier keys defined by this keystroke |
bool | onKeyRelease | Whether the keystroke is active on key release |