Editar

Compartilhar via


ImageList.ImageCollection.IList.Add(Object) Method

Definition

Adds the specified image to the ImageList.

 virtual int System.Collections.IList.Add(System::Object ^ value) = System::Collections::IList::Add;
int IList.Add (object value);
int IList.Add (object? value);
abstract member System.Collections.IList.Add : obj -> int
override this.System.Collections.IList.Add : obj -> int
Function Add (value As Object) As Integer Implements IList.Add

Parameters

value
Object

The image to add to the list.

Returns

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

Implements

Exceptions

value is null.

value is not a Bitmap.

Applies to