Click or drag to resize
Ranorex

KeyboardToKey Method

Converts the specified string representation (see ToString(Keys)) to a Keys value.

Namespace:  Ranorex
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public static Keys ToKey(
	string key
)

Parameters

key
Type: SystemString
The string representation of a key.

Return Value

Type: Keys
The key value.
Exceptions
ExceptionCondition
ArgumentExceptionIf the string representation of the key is invalid.
See Also