Class InputBindingsCollection
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.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.Keyboard
Assembly: Telerik.WinControls.dll
Syntax
public class InputBindingsCollection : CollectionBase, IList, ICollection, IEnumerable
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
InputBinding[]
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
InputBindingsCollection
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
Shortcuts
owner
The Shortcuts instance that owns this collection. |
Properties
Item[Int32]
Represents the entry at the specified index of the InputBinding.
Declaration
public InputBinding this[int index] { get; set; }
Parameters
System.Int32
index
The zero-based index of the entry to locate in the collection. |
Property Value
InputBinding
The entry at the specified index of the collection. |
Exceptions
System.ArgumentOutOfRangeException
|
Methods
Add(InputBinding)
Adds a InputBinding with the specified value to the InputBindingsCollection .
Declaration
public int Add(InputBinding value)
Parameters
InputBinding
value
The InputBinding to add. |
Returns
System.Int32
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
InputBinding[]
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
InputBindingsCollection
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
InputBinding
value
The InputBinding to locate. |
Returns
System.Boolean
true if the InputBinding is contained in the collection; otherwise, false. |
CopyTo(InputBinding[], Int32)
Copies the InputBindingsCollection values to a one-dimensional System.Array instance at the specified index.
Declaration
public void CopyTo(InputBinding[] array, int index)
Parameters
InputBinding[]
array
The one-dimensional System.Array that is the destination of the values copied from InputBindingsCollection . |
System.Int32
index
The index in |
Exceptions
System.ArgumentException
-or- The number of elements in the InputBindingsCollection is greater than the available space between |
System.ArgumentNullException
|
System.ArgumentOutOfRangeException
|
GetBindingByComponent(IComponent)
Gets all input bindings associated with the specified component.
Declaration
public InputBindingsCollection GetBindingByComponent(IComponent component)
Parameters
System.ComponentModel.IComponent
component
The component to search for bindings. |
Returns
InputBindingsCollection
A collection of input bindings associated with the component, or |
IndexOf(InputBinding)
Returns the index of a InputBinding in the InputBindingsCollection .
Declaration
public int IndexOf(InputBinding value)
Parameters
InputBinding
value
The InputBinding to locate. |
Returns
System.Int32
The index of the InputBinding of |
Insert(Int32, InputBinding)
Inserts a InputBinding into the InputBindingsCollection at the specified index.
Declaration
public void Insert(int index, InputBinding value)
Parameters
System.Int32
index
The zero-based index where |
InputBinding
value
The InputBinding to insert. |
Remove(InputBinding)
Removes a specific InputBinding from the InputBindingsCollection .
Declaration
public void Remove(InputBinding value)
Parameters
InputBinding
value
The InputBinding to remove from the InputBindingsCollection . |
Exceptions
System.ArgumentException
|
RemoveBindingByComponent(IComponent)
Removes all input bindings associated with the specified component from the collection.
Declaration
public void RemoveBindingByComponent(IComponent component)
Parameters
System.ComponentModel.IComponent
component
The component whose bindings should be removed. |