Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IndexOf Method

Array.IndexOf Method

Searches for the specified object and returns the index of its first occurrence in a one-dimensional array or in a range of elements in the array.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Static member Supported by the XNA Framework Supported by Portable Class Library IndexOf<T>(T[], T) Searches for the specified object and returns the index of its first occurrence in a one-dimensional array.
Public method Static member Supported by Portable Class Library IndexOf(Array, Object) Searches for the specified object and returns the index of its first occurrence in a one-dimensional array.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library IndexOf<T>(T[], T, Int32) Searches for the specified object in a range of elements of a one dimensional array, and returns the index of its first occurrence. The range extends from a specified index to the end of the array.
Public method Static member Supported by Portable Class Library IndexOf(Array, Object, Int32) Searches for the specified object in a range of elements of a one-dimensional array, and returns the index of its first occurrence. The range extends from a specified index to the end of the array.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library IndexOf<T>(T[], T, Int32, Int32) Searches for the specified object in a range of elements of a one-dimensional array, and returns the index of its first occurrence. The range extends from a specified index for a specified number of elements.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library IndexOf(Array, Object, Int32, Int32) Searches for the specified object in a range of elements of a one-dimensional array, and returns the index of ifs first occurrence. The range extends from a specified index for a specified number of elements.
Top
Show:
© 2015 Microsoft