ImageList.ImageCollection.Item Property (String)


Gets an Image with the specified key from the collection.

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

public Image this[
	string key
] { get; }


Type: System.String

The name of the image to retrieve from the collection.

Property Value

Type: System.Drawing.Image

The Image with the specified key.

The name of an image corresponds to its key in the ImageList.ImageCollection. The key comparison is not case-sensitive.

If an image with the specified key is not found, the value of the Item property is null.

.NET Framework
Available since 2.0
Return to top