ImageList::ImageCollection::RemoveAt Method (Int32)

 

Removes an image from the list.

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

public:
virtual void RemoveAt(
	int index
) sealed

Parameters

index
Type: System::Int32

The index of the image to remove.

Exception Condition
InvalidOperationException

The image cannot be removed.

ArgumentOutOfRangeException

The index value was less than 0.

-or-

The index value is greater than or equal to the Count of images.

.NET Framework
Available since 1.1
Return to top
Show: