[]
        
(Showing Draft Content)

FarPoint.Win.Spread.KeystrokeFactory.CreateKeystroke

CreateKeystroke Method

CreateKeystroke(char)

Creates a Keystroke object from a character.

Declaration
public Keystroke CreateKeystroke(char keyChar)
Public Function CreateKeystroke(keyChar As Char) As Keystroke
Parameters
Type Name Description
char keyChar

Character for the keystroke

Returns
Type Description
Keystroke

A new Keystroke object.

CreateKeystroke(Keys, Keys)

Creates a Keystroke object from a key code and modifiers.

Declaration
public Keystroke CreateKeystroke(Keys keyCode, Keys modifiers)
Public Function CreateKeystroke(keyCode As Keys, modifiers As Keys) As Keystroke
Parameters
Type Name Description
Keys keyCode

Key code for the keystroke

Keys modifiers

Modifier keys for the keystroke

Returns
Type Description
Keystroke

A new Keystroke object.

CreateKeystroke(Keys, Keys, bool)

Creates a Keystroke object from a key code and modifiers.

Declaration
public Keystroke CreateKeystroke(Keys keyCode, Keys modifiers, bool onKeyRelease)
Public Function CreateKeystroke(keyCode As Keys, modifiers As Keys, onKeyRelease As Boolean) As Keystroke
Parameters
Type Name Description
Keys keyCode

Key code for the keystroke

Keys modifiers

Modifier keys for the keystroke

bool onKeyRelease

Whether the keystroke is active on key release

Returns
Type Description
Keystroke

A new Keystroke object.