ImageList.ImageCollection.Keys Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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 StringCollection Keys { 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