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

Provides keyboard shortcut management and input binding functionality for RadControls and RadItems.

Definition

Constructors

Initializes a new instance of the Shortcuts class.

C#
public Shortcuts()

Initializes a new instance of the Shortcuts class with the specified owner control.

C#
public Shortcuts(Control owner)
Parameters:ownerControl

The control that owns this shortcuts instance.

Initializes a new instance of the Shortcuts class and adds it to the specified container.

C#
public Shortcuts(IContainer container)
Parameters:containerIContainer

The container to add this component to.

Properties

Gets the collection of input bindings that define keyboard shortcuts and their associated commands.

C#
public InputBindingsCollection InputBindings { get; }
Property Value:

An InputBindingsCollection containing the input bindings.

Gets or sets the control that owns this shortcuts instance.

C#
public Control Owner { get; set; }
Property Value:

The owner control.

Methods

Adds a command binding to the input bindings collection.

C#
public void AddCommandBindings(InputBinding binding)
Parameters:bindingInputBinding

The input binding to add.

Adds command bindings from an existing collection to the input bindings collection.

C#
public void AddCommandBindings(InputBindingsCollection bindings)
Parameters:bindingsInputBindingsCollection

The input bindings collection to add.

Adds multiple command bindings to the input bindings collection.

C#
public void AddCommandBindings(List<InputBinding> bindings)
Parameters:bindingsList<InputBinding>

The list of input bindings to add.

Adds keyboard shortcuts support by initializing the chord message filter.

C#
public virtual void AddShortcutsSupport()

Determines whether this extender provider can extend the specified object.

C#
public bool CanExtend(object extendee)
Parameters:extendeeobject

The object to test for extensibility.

Returns:

bool

true if the object can be extended; otherwise, false.

Implements: IExtenderProvider.CanExtend(object)

Clean up any resources being used.

C#
protected override void Dispose(bool disposing)
Parameters:disposingbool

true if managed resources should be disposed; otherwise, false.

Overrides: Component.Dispose(bool)

Gets the command binding associated with the specified component.

C#
[TypeConverter(typeof(ExpandableObjectConverter))]
public InputBinding GetCommandBinding(IComponent component)
Parameters:componentIComponent

The component to get the binding for.

Returns:

InputBinding

The input binding associated with the component, or null if none exists.

Raises the Activate event.

C#
protected virtual void OnActivate(ChordEventArgs e)
Parameters:eChordEventArgs

A ChordEventArgs that contains the event data.

Resets the specified command binding to its default state.

C#
public void ResetCommandBinding(InputBinding value)
Parameters:valueInputBinding

The input binding to reset.

Sets the command binding for the specified component.

C#
public void SetCommandBinding(IComponent component, InputBinding value)
Parameters:componentIComponent

The component to set the binding for.

valueInputBinding

The input binding to associate with the component.

Events

Occurs when a keyboard shortcut is activated.

C#
public event ChordsEventHandler Activate