Show / Hide Table of Contents

Operator KHotkey.implicit operator(+ 3 overloads)


Overload

Implicit conversion from string like "Ctrl+Shift+K".

public static implicit operator KHotkey(string hotkey)
Parameters
hotkey  (string)
Returns
KHotkey
Exceptions
ArgumentException

Error in hotkey.


Overload(next)

Implicit conversion from tuple (KMod, KKey).

public static implicit operator KHotkey((KMod, KKey) hotkey)
Parameters
hotkey  ((KMod, KKey))
Returns
KHotkey

Overload(next)

Implicit conversion from KKey (hotkey without modifiers).

public static implicit operator KHotkey(KKey key)
Parameters
key  (KKey)
Returns
KHotkey

Overload(top)

Implicit conversion from System.Windows.Forms.Keys like Keys.Ctrl|Keys.B.

public static implicit operator KHotkey(Keys hotkey)
Parameters
hotkey  (Keys)
Returns
KHotkey