ImageList::ImageCollection::IList::Add Method (Object^)
.NET Framework (current version)
This API supports the product infrastructure and is not intended to be used directly from your code.
Adds the specified image to the ImageList.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- value
-
Type:
System::Object^
The image to add to the list.
Return Value
Type: System::Int32The index of the newly added image, or -1 if the image could not be added.
Implements
IList::Add(Object^)| Exception | Condition |
|---|---|
| ArgumentNullException | value is null. |
| ArgumentException | value is not a Bitmap. |
.NET Framework
Available since 1.1
Available since 1.1
Show: