語言

ImageList.ImageCollection.IndexOf(Image) 方法

定義

不支援。 該方法會 IndexOf(Object) 回傳列表中指定物件的索引。

public:
 int IndexOf(System::Drawing::Image ^ image);
public int IndexOf(System.Drawing.Image image);
member this.IndexOf : System.Drawing.Image -> int
Public Function IndexOf (image As Image) As Integer

參數

image
Image

在清單中尋找。Image

傳回

列表中圖片的索引。

例外狀況

此方法不被支援。

備註

此實作 IndexOf 會 NotSupportedException 拋出例外。

適用於