Upraviť

Zdieľať cez


ImageList.ImageCollection.IList.IndexOf(Object) Method

Definition

Implements the IndexOf(Object) method. Throws a NotSupportedException in all cases.

This API supports the product infrastructure and is not intended to be used directly from your code.

 virtual int System.Collections.IList.IndexOf(System::Object ^ image) = System::Collections::IList::IndexOf;
 virtual int System.Collections.IList.IndexOf(System::Object ^ value) = System::Collections::IList::IndexOf;
int IList.IndexOf (object image);
int IList.IndexOf (object value);
int IList.IndexOf (object? value);
abstract member System.Collections.IList.IndexOf : obj -> int
override this.System.Collections.IList.IndexOf : obj -> int
abstract member System.Collections.IList.IndexOf : obj -> int
override this.System.Collections.IList.IndexOf : obj -> int
Function IndexOf (image As Object) As Integer Implements IList.IndexOf
Function IndexOf (value As Object) As Integer Implements IList.IndexOf

Parameters

imagevalue
Object

The image to find in the list.

Returns

The index of value if found in the list; otherwise, -1.

Implements

Exceptions

In all cases.

Applies to