 | 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
Syntaxpublic static Keys ToKey(
string key
)
Public Shared Function ToKey (
key As String
) As Keys
Parameters
- key
- Type: SystemString
The string representation of a key.
Return Value
Type:
KeysThe key value.
Exceptions| Exception | Condition |
|---|
| ArgumentException | If the string representation of the key is invalid. |
See Also