ItemCollection.IndexOf method

Applies to Windows and Windows Phone

Determines the index of a specific item in the collection.

Syntax


public int IndexOf(
  object item
)

Parameters

item

Type: System.Object

The object to locate in the collection.

Return value

Type: System.Int32

The index of item if found in the collection; otherwise, –1.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls

See also

ItemCollection

 

 

Show:
© 2014 Microsoft