语言

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 异常。

适用于