C# 클래스 GlobalHotKey.HotKeyManager

Setups system-wide hot keys and provides possibility to react on their events.
상속: IDisposable
파일 보기 프로젝트 열기: kirmir/GlobalHotKey 1 사용 예제들

공개 메소드들

메소드 설명
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