ImageList::ImageCollection::Keys Property

 

Gets the collection of keys associated with the images in the ImageList::ImageCollection.

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

public:
property StringCollection^ Keys {
	StringCollection^ get();
}

Property Value

Type: System.Collections.Specialized::StringCollection^

A StringCollection containing the names of the images in the ImageList::ImageCollection.

The name of an image corresponds to its key, and an image key is not case-sensitive.

If none of the images contained in the ImageList::ImageCollection have keys, Keys returns an empty StringCollection.

.NET Framework
Available since 2.0
Return to top
Show: