InputGestureCollection Class

 

Represents an ordered collection of InputGesture objects.

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

System::Object
  System.Windows.Input::InputGestureCollection

public ref class InputGestureCollection sealed : IList, ICollection, 
	IEnumerable

NameDescription
System_CAPS_pubmethodInputGestureCollection()

Initializes a new instance of the InputGestureCollection class.

System_CAPS_pubmethodInputGestureCollection(IList^)

Initializes a new instance of the InputGestureCollection class using the elements in the specified IList.

NameDescription
System_CAPS_pubpropertyCount

Gets the number of InputGesture items in this InputGestureCollection.

System_CAPS_pubpropertyIsFixedSize

Gets a value that indicates whether this InputGestureCollection has a fixed size.

System_CAPS_pubpropertyIsReadOnly

Gets a value that indicates whether this InputGestureCollection is read-only. The default value is false.

System_CAPS_pubpropertyIsSynchronized

Gets a value that indicates whether this InputGestureCollection is synchronized (thread safe).

System_CAPS_pubpropertyItem[Int32]

Gets or set the InputGesture at the specified index.

System_CAPS_pubpropertySyncRoot

Gets an object that can be used to synchronize access to this InputGestureCollection.

NameDescription
System_CAPS_pubmethodAdd(InputGesture^)

Adds the specified InputGesture to this InputGestureCollection.

System_CAPS_pubmethodAddRange(ICollection^)

Adds the elements of the specified ICollection to the end of this InputGestureCollection.

System_CAPS_pubmethodClear()

Removes all elements from the InputGestureCollection.

System_CAPS_pubmethodContains(InputGesture^)

Determines whether the specified InputGesture is in the collection.

System_CAPS_pubmethodCopyTo(array<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.

System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

Gets an enumerator that iterates through this InputGestureCollection.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodIndexOf(InputGesture^)

Searches for the first occurrence of the specified InputGesture in this InputGestureCollection.

System_CAPS_pubmethodInsert(Int32, InputGesture^)

Inserts the specified InputGesture into this InputGestureCollection at the specified index.

System_CAPS_pubmethodRemove(InputGesture^)

Removes the first occurrence of the specified InputGesture from this InputGestureCollection.

System_CAPS_pubmethodRemoveAt(Int32)

Removes the specified InputGesture at the specified index of this InputGestureCollection.

System_CAPS_pubmethodSeal()

Sets this InputGestureCollection to read-only.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodICollection::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.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList::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.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList::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.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList::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.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList::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.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList::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.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIList::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.

NameDescription
System_CAPS_pubmethodAsParallel()

Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.)

System_CAPS_pubmethodAsQueryable()

Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.)

System_CAPS_pubmethodCast<TResult>()

Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.)

System_CAPS_pubmethodOfType<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>
No code example is currently available or this language may not be supported.

.NET Framework
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.

Return to top
Show: