New to Telerik UI for WPFStart a free 30-day trial

Class KeyBindingCollection.

Definition

Namespace:Telerik.Windows.Controls.SyntaxEditor.Commands

Assembly:Telerik.Windows.Controls.SyntaxEditor.dll

Syntax:

C#
public class KeyBindingUtilities

Inheritance: objectKeyBindingUtilities

Methods

Adds the specified input binding.

C#
public void Add(InputBinding inputBinding)
Parameters:inputBindingInputBinding

The input binding.

Adds the range.

C#
public void AddRange(IEnumerable<InputBinding> inputBindings)
Parameters:inputBindingsIEnumerable<InputBinding>

The input bindings.

Clears this instance.

C#
public void Clear()

Registers the command.

C#
public void RegisterCommand(ICommand command, Key key, ModifierKeys modifierKeys = 0, object commandParameter = null)
Parameters:commandICommand

The command.

keyKey

The key.

modifierKeysModifierKeys

The modifier keys.

commandParameterobject

The command parameter.

Sets the input bindings.

C#
public void SetInputBindings(InputBindingCollection inputBindings)
Parameters:inputBindingsInputBindingCollection

The input bindings.

Exceptions:

ArgumentNullException

InputBindings.

Unregisters the command.

C#
public void UnregisterCommand(ICommand command)
Parameters:commandICommand

The command.