InputGestureCollection Class
Represents an ordered collection of InputGesture objects.
Assembly: PresentationCore (in PresentationCore.dll)
| Name | Description | |
|---|---|---|
![]() | InputGestureCollection() | Initializes a new instance of the InputGestureCollection class. |
![]() | InputGestureCollection(IList) | Initializes a new instance of the InputGestureCollection class using the elements in the specified IList. |
| Name | Description | |
|---|---|---|
![]() | Count | Gets the number of InputGesture items in this InputGestureCollection. |
![]() | IsFixedSize | Gets a value that indicates whether this InputGestureCollection has a fixed size. |
![]() | IsReadOnly | Gets a value that indicates whether this InputGestureCollection is read-only. The default value is false. |
![]() | IsSynchronized | Gets a value that indicates whether this InputGestureCollection is synchronized (thread safe). |
![]() | Item(Int32) | Gets or set the InputGesture at the specified index. |
![]() | SyncRoot | Gets an object that can be used to synchronize access to this InputGestureCollection. |
| Name | Description | |
|---|---|---|
![]() | Add(InputGesture) | Adds the specified InputGesture to this InputGestureCollection. |
![]() | AddRange(ICollection) | Adds the elements of the specified ICollection to the end of this InputGestureCollection. |
![]() | Clear() | Removes all elements from the InputGestureCollection. |
![]() | Contains(InputGesture) | Determines whether the specified InputGesture is in the collection. |
![]() | CopyTo(InputGesture(), Int32) | Copies all of the items in the InputGestureCollection to the specified one-dimensional array, starting at the specified index of the target array. |
![]() | Equals(Object) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | GetEnumerator() | Gets an enumerator that iterates through this InputGestureCollection. |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | IndexOf(InputGesture) | Searches for the first occurrence of the specified InputGesture in this InputGestureCollection. |
![]() | Insert(Int32, InputGesture) | Inserts the specified InputGesture into this InputGestureCollection at the specified index. |
![]() | Remove(InputGesture) | Removes the first occurrence of the specified InputGesture from this InputGestureCollection. |
![]() | RemoveAt(Int32) | Removes the specified InputGesture at the specified index of this InputGestureCollection. |
![]() | Seal() | Sets this InputGestureCollection to read-only. |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | ICollection.CopyTo(Array, Int32) | This API supports the product infrastructure and is not intended to be used directly from your code. For a description of this member, see ICollection.CopyTo. |
![]() ![]() | IList.Add(Object) | This API supports the product infrastructure and is not intended to be used directly from your code. For a description of this member, see IList.Add. |
![]() ![]() | IList.Contains(Object) | This API supports the product infrastructure and is not intended to be used directly from your code. For a description of this member, see IList.Contains. |
![]() ![]() | IList.IndexOf(Object) | This API supports the product infrastructure and is not intended to be used directly from your code. For a description of this member, see IList.IndexOf. |
![]() ![]() | IList.Insert(Int32, Object) | This API supports the product infrastructure and is not intended to be used directly from your code. For a description of this member, see IList.Insert. |
![]() ![]() | IList.Remove(Object) | This API supports the product infrastructure and is not intended to be used directly from your code. For a description of this member, see IList.Remove. |
![]() ![]() | IList.Item(Int32) | This API supports the product infrastructure and is not intended to be used directly from your code. For a description of this member, see IList.Item. |
| Name | Description | |
|---|---|---|
![]() | AsParallel() | Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.) |
![]() | AsQueryable() | Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.) |
![]() | Cast(Of TResult)() | Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.) |
![]() | OfType(Of TResult)() | Filters the elements of an IEnumerable based on a specified type.(Defined by Enumerable.) |
The following example creates a KeyGesture and adds it to the InputGestureCollection of a RoutedCommand.
<Window.InputBindings> <KeyBinding Key="B" Modifiers="Control" Command="ApplicationCommands.Open" /> </Window.InputBindings>
Available since 3.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.




