C# Класс GlobalHotKey.HotKeyManager

Setups system-wide hot keys and provides possibility to react on their events.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

HotKeyManager ( ) : System

Initializes a new instance of the HotKeyManager class.

Register ( Key key, ModifierKeys modifiers ) : System.Windows.Input.HotKey

Registers the system-wide hot key.

Register ( System.Windows.Input.HotKey hotKey ) : void

Registers the system-wide hot key.

Unregister ( System.Windows.Input.HotKey hotKey ) : void

Unregisters previously registered hot key.

Unregister ( Key key, ModifierKeys modifiers ) : void

Unregisters previously registered hot key.

Приватные методы

Метод Описание
getFreeKeyId ( ) : int
messagesHandler ( IntPtr handle, int message, IntPtr wParam, IntPtr lParam, bool &handled ) : IntPtr
onKeyPressed ( KeyPressedEventArgs e ) : void

Описание методов

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

HotKeyManager() публичный Метод

Initializes a new instance of the HotKeyManager class.
public HotKeyManager ( ) : System
Результат System

Register() публичный Метод

Registers the system-wide hot key.
public Register ( Key key, ModifierKeys modifiers ) : System.Windows.Input.HotKey
key Key The key.
modifiers ModifierKeys The key modifiers.
Результат System.Windows.Input.HotKey

Register() публичный Метод

Registers the system-wide hot key.
public Register ( System.Windows.Input.HotKey hotKey ) : void
hotKey System.Windows.Input.HotKey The hot key.
Результат void

Unregister() публичный Метод

Unregisters previously registered hot key.
public Unregister ( System.Windows.Input.HotKey hotKey ) : void
hotKey System.Windows.Input.HotKey The registered hot key.
Результат void

Unregister() публичный Метод

Unregisters previously registered hot key.
public Unregister ( Key key, ModifierKeys modifiers ) : void
key Key The key.
modifiers ModifierKeys The key modifiers.
Результат void