FilteredObservableCollection<T>.IndexOf Method

Definition

Overloads

IndexOf(T)

Gets the location of the specified item.

IndexOf(Object)

Gets the location of the specified item.

IndexOf(T)

Gets the location of the specified item.

public:
 virtual int IndexOf(T item);
public:
 int IndexOf(T item);
int IndexOf(T item);
public int IndexOf (T item);
abstract member IndexOf : 'T -> int
override this.IndexOf : 'T -> int
Public Function IndexOf (item As T) As Integer

Parameters

item
T

The item.

Returns

The location of the specified item.

Implements

Remarks

If the collection has a filter, this method returns the location of the item in the filtered list, otherwise returns the location of the item in the underlying list.

Applies to

IndexOf(Object)

Gets the location of the specified item.

public:
 virtual int IndexOf(System::Object ^ value);
public:
 int IndexOf(Platform::Object ^ value);
int IndexOf(winrt::Windows::Foundation::IInspectable const & value);
public int IndexOf (object value);
abstract member IndexOf : obj -> int
override this.IndexOf : obj -> int
Public Function IndexOf (value As Object) As Integer

Parameters

value
Object

The value.

Returns

The location of the specified item.

Implements

Applies to