Compartir a través de


FilteredObservableCollection<T>.IndexOf Method (T)

Gets the location of the specified item.

Namespace:  Microsoft.VisualStudio.Language.Intellisense
Assembly:  Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)

Syntax

'Declaration
Public Function IndexOf ( _
    item As T _
) As Integer
public int IndexOf(
    T item
)
public:
virtual int IndexOf(
    T item
) sealed
abstract IndexOf : 
        item:'T -> int  
override IndexOf : 
        item:'T -> int
public final function IndexOf(
    item : T
) : int

Parameters

  • item
    Type: T

    The item.

Return Value

Type: Int32
The location of the specified item.

Implements

IList.IndexOf(UTP)

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.

.NET Framework Security

See Also

Reference

FilteredObservableCollection<T> Class

IndexOf Overload

Microsoft.VisualStudio.Language.Intellisense Namespace