ImageList::ImageCollection::IList::Add Method (Object^)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Adds the specified image to the ImageList.

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

private:
virtual int Add(
	Object^ value
) sealed = IList::Add

Parameters

value
Type: System::Object^

The image to add to the list.

Return Value

Type: System::Int32

The index of the newly added image, or -1 if the image could not be added.

Exception Condition
ArgumentNullException

value is null.

ArgumentException

value is not a Bitmap.

.NET Framework
Available since 1.1
Return to top
Show: