ImageList::ImageCollection::ContainsKey Method (String^)
.NET Framework (current version)
Determines if the collection contains an image with the specified key.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- key
-
Type:
System::String^
The key of the image to search for.
Return Value
Type: System::Booleantrue to indicate an image with the specified key is contained in the collection; otherwise, false.
The name of an image corresponds to its key. The key comparison is not case-sensitive. If the key parameter is null or an empty string, the ContainsKey method returns false.
.NET Framework
Available since 2.0
Available since 2.0
Show: