ImageList.ImageCollection.IList.IndexOf(Object) 方法

定義

實作 IndexOf(Object) 方法。 在所有情況下都擲回 NotSupportedException

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

 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

參數

imagevalue
Object

要在清單中尋找的影像。

傳回

Int32

如果可在清單中找到則為 value 的索引,否則為 -1。

實作

例外狀況

在所有情況下。

適用於