C# Class PsHandler.KeyCombination

Show file Open project: kampiuceris/PsHandler Class Usage Examples

Public Properties

Property Type Description
Alt bool
CommandName string
Ctrl bool
Shift bool

Public Methods

Method Description
Equals ( KeyCombination kc ) : bool
KeyCombination ( Key selectedKey ) : System
KeyCombination ( Key selectedKey, bool ctrl, bool alt, bool shift ) : System
KeyCombination ( Key selectedKey, bool ctrl, bool alt, bool shift, string commandName ) : System
OnKeyCombinationPressed ( EventArgs e ) : void
OnKeyCombinationReleased ( EventArgs e ) : void
Parse ( string text ) : KeyCombination
Set ( Key selectedKey, bool ctrl, bool alt, bool shift ) : void
SetModifiers ( bool ctrl, bool alt, bool shift ) : void
ToString ( ) : string

Method Details

Equals() public method

public Equals ( KeyCombination kc ) : bool
kc KeyCombination
return bool

KeyCombination() public method

public KeyCombination ( Key selectedKey ) : System
selectedKey Key
return System

KeyCombination() public method

public KeyCombination ( Key selectedKey, bool ctrl, bool alt, bool shift ) : System
selectedKey Key
ctrl bool
alt bool
shift bool
return System

KeyCombination() public method

public KeyCombination ( Key selectedKey, bool ctrl, bool alt, bool shift, string commandName ) : System
selectedKey Key
ctrl bool
alt bool
shift bool
commandName string
return System

OnKeyCombinationPressed() public method

public OnKeyCombinationPressed ( EventArgs e ) : void
e System.EventArgs
return void

OnKeyCombinationReleased() public method

public OnKeyCombinationReleased ( EventArgs e ) : void
e System.EventArgs
return void

Parse() public static method

public static Parse ( string text ) : KeyCombination
text string
return KeyCombination

Set() public method

public Set ( Key selectedKey, bool ctrl, bool alt, bool shift ) : void
selectedKey Key
ctrl bool
alt bool
shift bool
return void

SetModifiers() public method

public SetModifiers ( bool ctrl, bool alt, bool shift ) : void
ctrl bool
alt bool
shift bool
return void

ToString() public method

public ToString ( ) : string
return string

Property Details

Alt public property

public bool Alt
return bool

CommandName public property

public string CommandName
return string

Ctrl public property

public bool Ctrl
return bool

Shift public property

public bool Shift
return bool