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

Represents a collection of input bindings that can be used to manage keyboard shortcuts and commands. Provides functionality to add, remove, and search for input bindings within the collection.

Definition

Constructors

Initializes a new instance of the InputBindingsCollection class.

C#
public InputBindingsCollection()

Initializes a new instance of InputBindingsCollection containing any array of InputBinding objects.

C#
public InputBindingsCollection(InputBinding[] value)
Parameters:valueInputBinding[]

A array of InputBinding objects with which to intialize the collection

Initializes a new instance of InputBindingsCollection based on another InputBindingsCollection.

C#
public InputBindingsCollection(InputBindingsCollection value)
Parameters:valueInputBindingsCollection

A InputBindingsCollection from which the contents are copied

Initializes a new instance of the InputBindingsCollection class with the specified owner.

C#
public InputBindingsCollection(Shortcuts owner)
Parameters:ownerShortcuts

The Shortcuts instance that owns this collection.

Properties

Represents the entry at the specified index of the InputBinding.

C#
public InputBinding this[int index] { get; set; }
Parameters:indexint

The zero-based index of the entry to locate in the collection.

Property Value:

The entry at the specified index of the collection.

Exceptions:

ArgumentOutOfRangeException

index is outside the valid range of indexes for the collection.

Methods

Adds a InputBinding with the specified value to the InputBindingsCollection .

C#
public int Add(InputBinding value)
Parameters:valueInputBinding

The InputBinding to add.

Returns:

int

The index at which the new element was inserted.

Copies the elements of an array to the end of the InputBindingsCollection.

C#
public void AddRange(InputBinding[] value)
Parameters:valueInputBinding[]

An array of type InputBinding containing the objects to add to the collection.

Adds the contents of another InputBindingsCollection to the end of the collection.

C#
public void AddRange(InputBindingsCollection value)
Parameters:valueInputBindingsCollection

A InputBindingsCollection containing the objects to add to the collection.

Gets a value indicating whether the InputBindingsCollection contains the specified InputBinding.

C#
public bool Contains(InputBinding value)
Parameters:valueInputBinding

The InputBinding to locate.

Returns:

bool

true if the InputBinding is contained in the collection; otherwise, false.

Copies the InputBindingsCollection values to a one-dimensional Array instance at the specified index.

C#
public void CopyTo(InputBinding[] array, int index)
Parameters:arrayInputBinding[]

The one-dimensional Array that is the destination of the values copied from InputBindingsCollection .

indexint

The index in array where copying begins.

Exceptions:

ArgumentException

array is multidimensional.

-or-

The number of elements in the InputBindingsCollection is greater than the available space between index and the end of array.

ArgumentNullException

array is null.

ArgumentOutOfRangeException

index is less than array's lowbound.

Gets all input bindings associated with the specified component.

C#
public InputBindingsCollection GetBindingByComponent(IComponent component)
Parameters:componentIComponent

The component to search for bindings.

Returns:

InputBindingsCollection

A collection of input bindings associated with the component, or null if none found.

Returns the index of a InputBinding in the InputBindingsCollection .

C#
public int IndexOf(InputBinding value)
Parameters:valueInputBinding

The InputBinding to locate.

Returns:

int

The index of the InputBinding of value in the InputBindingsCollection, if found; otherwise, -1.

Inserts a InputBinding into the InputBindingsCollection at the specified index.

C#
public void Insert(int index, InputBinding value)
Parameters:indexint

The zero-based index where value should be inserted.

valueInputBinding

The InputBinding to insert.

Removes a specific InputBinding from the InputBindingsCollection .

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

The InputBinding to remove from the InputBindingsCollection .

Exceptions:

ArgumentException

value is not found in the Collection.

Removes all input bindings associated with the specified component from the collection.

C#
public void RemoveBindingByComponent(IComponent component)
Parameters:componentIComponent

The component whose bindings should be removed.