CommandBindingCollection::IndexOf Method (CommandBinding^)

 

Searches for the first occurrence of the specified CommandBinding in this CommandBindingCollection.

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

public:
int IndexOf(
	CommandBinding^ value
)

Parameters

value
Type: System.Windows.Input::CommandBinding^

The binding to locate in the collection.

Return Value

Type: System::Int32

The index of the first occurrence of value, if found; otherwise, -1.

.NET Framework
Available since 3.0
Return to top
Show: