Export (0) Print
Expand All

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.

ExceptionCondition
ArgumentNullException

The image being added is null.

ArgumentException

The image being added is not a Bitmap.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft