ClassInputBindingsCollection
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
InputBindingsCollection()
Initializes a new instance of the InputBindingsCollection class.
Declaration
public InputBindingsCollection()
InputBindingsCollection(InputBinding[])
Initializes a new instance of InputBindingsCollection containing any array of InputBinding objects.
Declaration
public InputBindingsCollection(InputBinding[] value)
Parameters
value
A array of InputBinding objects with which to intialize the collection
InputBindingsCollection(InputBindingsCollection)
Initializes a new instance of InputBindingsCollection based on another InputBindingsCollection.
Declaration
public InputBindingsCollection(InputBindingsCollection value)
Parameters
value
A InputBindingsCollection from which the contents are copied
InputBindingsCollection(Shortcuts)
Initializes a new instance of the InputBindingsCollection class with the specified owner.
Declaration
public InputBindingsCollection(Shortcuts owner)
Parameters
owner
The Shortcuts instance that owns this collection.
Properties
this[int]
Represents the entry at the specified index of the InputBinding.
Declaration
public InputBinding this[int index] { get; set; }
Parameters
index
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
Add(InputBinding)
Adds a InputBinding with the specified value to the InputBindingsCollection .
Declaration
public int Add(InputBinding value)
Parameters
value
The InputBinding to add.
Returns
The index at which the new element was inserted.
AddRange(InputBinding[])
Copies the elements of an array to the end of the InputBindingsCollection.
Declaration
public void AddRange(InputBinding[] value)
Parameters
value
An array of type InputBinding containing the objects to add to the collection.
AddRange(InputBindingsCollection)
Adds the contents of another InputBindingsCollection to the end of the collection.
Declaration
public void AddRange(InputBindingsCollection value)
Parameters
value
A InputBindingsCollection containing the objects to add to the collection.
Contains(InputBinding)
Gets a value indicating whether the InputBindingsCollection contains the specified InputBinding.
Declaration
public bool Contains(InputBinding value)
Parameters
value
The InputBinding to locate.
Returns
true if the InputBinding is contained in the collection; otherwise, false.
CopyTo(InputBinding[], int)
Copies the InputBindingsCollection values to a one-dimensional Array instance at the specified index.
Declaration
public void CopyTo(InputBinding[] array, int index)
Parameters
array
The one-dimensional Array that is the destination of the values copied from InputBindingsCollection .
index
The index in array where copying begins.
Exceptions
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.
GetBindingByComponent(IComponent)
Gets all input bindings associated with the specified component.
Declaration
public InputBindingsCollection GetBindingByComponent(IComponent component)
Parameters
component
The component to search for bindings.
Returns
A collection of input bindings associated with the component, or null if none found.
IndexOf(InputBinding)
Returns the index of a InputBinding in the InputBindingsCollection .
Declaration
public int IndexOf(InputBinding value)
Parameters
value
The InputBinding to locate.
Returns
The index of the InputBinding of value in the
InputBindingsCollection, if found; otherwise, -1.
Insert(int, InputBinding)
Inserts a InputBinding into the InputBindingsCollection at the specified index.
Declaration
public void Insert(int index, InputBinding value)
Parameters
index
The zero-based index where value should be inserted.
value
The InputBinding to insert.
Remove(InputBinding)
Removes a specific InputBinding from the InputBindingsCollection .
Declaration
public void Remove(InputBinding value)
Parameters
value
The InputBinding to remove from the InputBindingsCollection .
Exceptions
value is not found in the Collection.
RemoveBindingByComponent(IComponent)
Removes all input bindings associated with the specified component from the collection.
Declaration
public void RemoveBindingByComponent(IComponent component)
Parameters
component
The component whose bindings should be removed.