ImageList.ImageCollection.IndexOf Method (Image)

 

Not supported. The IndexOf method returns the index of a specified object in the list.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public int IndexOf(
	Image image
)

Parameters

image
Type: System.Drawing.Image

The Image to find in the list.

Return Value

Type: System.Int32

The index of the image in the list.

Exception Condition
NotSupportedException

This method is not supported.

This implementation of IndexOf throws a NotSupportedException exception.

.NET Framework
Available since 1.1
Return to top
Show: