ImageList.ImageCollection.IList.IndexOf(Object) Metoda

Definice

Implementuje metodu IndexOf(Object) . Vyvolá ve všech případech chybu NotSupportedException .

Toto rozhraní API podporuje produktovou infrastrukturu a není určené k použití přímo z uživatelského kódu.

 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

Parametry

imagevalue
Object

Obrázek, který chcete najít v seznamu.

Návraty

Int32

Index nalezených value v seznamu; jinak -1.

Implementuje

Výjimky

Ve všech případech

Platí pro