KeysExtensionsToShortcutString Method |
Converts the specified key to a shortcut string such as Ctrl+Alt+Z
Namespace:
Eto.Forms
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public static string ToShortcutString(
this Keys key,
string separator = "+"
)
<ExtensionAttribute>
Public Shared Function ToShortcutString (
key As Keys,
Optional separator As String = "+"
) As String
[<ExtensionAttribute>]
static member ToShortcutString :
key : Keys *
?separator : string
(* Defaults:
let _separator = defaultArg separator "+"
*)
-> string
Parameters
- key
- Type: Eto.FormsKeys
Key to convert - separator (Optional)
- Type: SystemString
Separator between each modifier and key
Return Value
Type:
StringA human-readable string representing the key combination including modifiers
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Keys. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also