Shortcuts
Provides keyboard shortcut management and input binding functionality for RadControls and RadItems.
Definition
Namespace:Telerik.WinControls.Keyboard
Assembly:Telerik.WinControls.dll
Syntax:
[ToolboxBitmap(typeof(ResFinder), "Resources.Shortcuts.bmp")]
[Browsable(false)]
public class Shortcuts : Component, IComponent, IDisposable, IExtenderProvider
Inheritance: objectMarshalByRefObjectComponentShortcuts
Implements:
Inherited Members
Constructors
Initializes a new instance of the Shortcuts class.
public Shortcuts()
Initializes a new instance of the Shortcuts class and adds it to the specified container.
public Shortcuts(IContainer container)
The container to add this component to.
Properties
Gets the collection of input bindings that define keyboard shortcuts and their associated commands.
public InputBindingsCollection InputBindings { get; }
An InputBindingsCollection containing the input bindings.
Methods
Adds a command binding to the input bindings collection.
public void AddCommandBindings(InputBinding binding)
The input binding to add.
Adds command bindings from an existing collection to the input bindings collection.
public void AddCommandBindings(InputBindingsCollection bindings)
The input bindings collection to add.
Adds multiple command bindings to the input bindings collection.
public void AddCommandBindings(List<InputBinding> bindings)
The list of input bindings to add.
Adds keyboard shortcuts support by initializing the chord message filter.
public virtual void AddShortcutsSupport()
Clean up any resources being used.
protected override void Dispose(bool disposing)
true if managed resources should be disposed; otherwise, false.
Overrides:
Gets the command binding associated with the specified component.
[TypeConverter(typeof(ExpandableObjectConverter))]
public InputBinding GetCommandBinding(IComponent component)
The component to get the binding for.
Returns:The input binding associated with the component, or null if none exists.
Raises the Activate event.
protected virtual void OnActivate(ChordEventArgs e)
A ChordEventArgs that contains the event data.
Resets the specified command binding to its default state.
public void ResetCommandBinding(InputBinding value)
The input binding to reset.
Sets the command binding for the specified component.
public void SetCommandBinding(IComponent component, InputBinding value)
The component to set the binding for.
valueInputBindingThe input binding to associate with the component.
Events
Occurs when a keyboard shortcut is activated.
public event ChordsEventHandler Activate