C# 클래스 Shortcut.HotkeyBinder

Used to bind and unbind Hotkeys to HotkeyCallbacks.
상속: IDisposable
파일 보기 프로젝트 열기: AlexArchive/Shortcut 1 사용 예제들

공개 메소드들

메소드 설명
Bind ( System.Windows.Forms.Hotkey hotkeyCombo ) : HotkeyCallback

Binds a Hotkey to a HotkeyCallback.

Bind ( Modifiers modifiers, Keys keys ) : HotkeyCallback

Binds a hotkey combination to a HotkeyCallback.

Dispose ( ) : void
HotkeyBinder ( ) : System

Initializes a new instance of the HotkeyBinder class.

IsHotkeyAlreadyBound ( System.Windows.Forms.Hotkey hotkeyCombo ) : bool

Indicates whether a Hotkey has been bound already either by this application or another application.

Unbind ( System.Windows.Forms.Hotkey hotkeyCombo ) : void

Unbinds a previously bound Hotkey.

Unbind ( Modifiers modifiers, Keys keys ) : void

Unbinds a previously bound hotkey combination.

비공개 메소드들

메소드 설명
OnHotkeyPressed ( object sender, HotkeyPressedEventArgs e ) : void
RegisterHotkey ( System.Windows.Forms.Hotkey hotkeyCombo ) : void
UnregisterHotkey ( System.Windows.Forms.Hotkey hotkeyCombo ) : void

메소드 상세

Bind() 공개 메소드

Binds a Hotkey to a HotkeyCallback.
public Bind ( System.Windows.Forms.Hotkey hotkeyCombo ) : HotkeyCallback
hotkeyCombo System.Windows.Forms.Hotkey
리턴 HotkeyCallback

Bind() 공개 메소드

Binds a hotkey combination to a HotkeyCallback.
public Bind ( Modifiers modifiers, Keys keys ) : HotkeyCallback
modifiers Modifiers The modifers that constitute this hotkey.
keys Keys The keys that constitute this hotkey.
리턴 HotkeyCallback

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

HotkeyBinder() 공개 메소드

Initializes a new instance of the HotkeyBinder class.
public HotkeyBinder ( ) : System
리턴 System

IsHotkeyAlreadyBound() 공개 메소드

Indicates whether a Hotkey has been bound already either by this application or another application.
public IsHotkeyAlreadyBound ( System.Windows.Forms.Hotkey hotkeyCombo ) : bool
hotkeyCombo System.Windows.Forms.Hotkey /// The to evaluate. ///
리턴 bool

Unbind() 공개 메소드

Unbinds a previously bound Hotkey.
public Unbind ( System.Windows.Forms.Hotkey hotkeyCombo ) : void
hotkeyCombo System.Windows.Forms.Hotkey
리턴 void

Unbind() 공개 메소드

Unbinds a previously bound hotkey combination.
public Unbind ( Modifiers modifiers, Keys keys ) : void
modifiers Modifiers
keys Keys
리턴 void