ImageList.ImageCollection.RemoveByKey Method (String)

 

Removes the image with the specified key from the collection.

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

public void RemoveByKey(
	string key
)

Parameters

key
Type: System.String

The key of the image to remove from the collection.

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

.NET Framework
Available since 2.0
Return to top
Show: