Click or drag to resize

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
public static string ToShortcutString(
	this Keys key,
	string separator = "+"


Type: Eto.FormsKeys
Key to convert
separator (Optional)
Type: SystemString
Separator between each modifier and key

Return Value

Type: String
A 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