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
Namespace:Telerik.WinControls.Keyboard
Assembly:Telerik.WinControls.dll
Syntax:
[ListBindable(BindableSupport.No)]
public class InputBindingsCollection : CollectionBase, IList, ICollection, IEnumerable
Inheritance: objectCollectionBaseInputBindingsCollection
Implements:
Inherited Members
Constructors
Initializes a new instance of the InputBindingsCollection class.
public InputBindingsCollection()
Initializes a new instance of InputBindingsCollection containing any array of InputBinding objects.
public InputBindingsCollection(InputBinding[] value)
A array of InputBinding objects with which to intialize the collection
Initializes a new instance of InputBindingsCollection based on another InputBindingsCollection.
public InputBindingsCollection(InputBindingsCollection value)
A InputBindingsCollection from which the contents are copied
Initializes a new instance of the InputBindingsCollection class with the specified owner.
public InputBindingsCollection(Shortcuts owner)
The Shortcuts instance that owns this collection.
Properties
Represents the entry at the specified index of the InputBinding.
public InputBinding this[int index] { get; set; }
The zero-based index of the entry to locate in the collection.
Property Value:The entry at the specified index of the collection.
Exceptions:index is outside the valid range of indexes for the collection.
Methods
Adds a InputBinding with the specified value to the InputBindingsCollection .
public int Add(InputBinding value)
The InputBinding to add.
Returns:The index at which the new element was inserted.
Copies the elements of an array to the end of the InputBindingsCollection.
public void AddRange(InputBinding[] value)
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.
public void AddRange(InputBindingsCollection value)
A InputBindingsCollection containing the objects to add to the collection.
Gets a value indicating whether the InputBindingsCollection contains the specified InputBinding.
public bool Contains(InputBinding value)
The InputBinding to locate.
Returns: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.
public void CopyTo(InputBinding[] array, int index)
The one-dimensional Array that is the destination of the values copied from InputBindingsCollection .
indexintThe index in array where copying begins.
array is multidimensional.
-or-
The number of elements in the InputBindingsCollection is greater than the available space between index and the end of array.
array is null.
index is less than array's lowbound.
Gets all input bindings associated with the specified component.
public InputBindingsCollection GetBindingByComponent(IComponent component)
The component to search for bindings.
Returns:A collection of input bindings associated with the component, or null if none found.
Returns the index of a InputBinding in the InputBindingsCollection .
public int IndexOf(InputBinding value)
The InputBinding to locate.
Returns:The index of the InputBinding of value in the
InputBindingsCollection, if found; otherwise, -1.
Inserts a InputBinding into the InputBindingsCollection at the specified index.
public void Insert(int index, InputBinding value)
The zero-based index where value should be inserted.
The InputBinding to insert.
Removes a specific InputBinding from the InputBindingsCollection .
public void Remove(InputBinding value)
The InputBinding to remove from the InputBindingsCollection .
Exceptions:value is not found in the Collection.
Removes all input bindings associated with the specified component from the collection.
public void RemoveBindingByComponent(IComponent component)
The component whose bindings should be removed.