ImageList.ImageCollection.Add Method (Image)

 

Adds the specified image to the ImageList.

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

public void Add(
	Image value
)

Parameters

value
Type: System.Drawing.Image

A Bitmap of the image to add to the list.

Exception Condition
ArgumentNullException

The image being added is null.

ArgumentException

The image being added is not a Bitmap.

.NET Framework
Available since 1.1
Return to top
Show: