Adds a command and input binding.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public void AddBinding( ICommand command, ModifierKeys modifiers, Key key, ExecutedRoutedEventHandler handler )
Public Sub AddBinding ( _ command As ICommand, _ modifiers As ModifierKeys, _ key As Key, _ handler As ExecutedRoutedEventHandler _ )
public: void AddBinding( ICommand^ command, ModifierKeys modifiers, Key key, ExecutedRoutedEventHandler^ handler )
Parameters
- command (ICommand)
- The command ID.
- modifiers (ModifierKeys)
- The modifiers of the keyboard shortcut.
- key (Key)
- The key of the keyboard shortcut.
- handler (ExecutedRoutedEventHandler)
- The event handler to run when the command is executed.
Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238