RemoveImage Method (AImageList)

Removes an image object from the object.

Syntax

Object.RemoveImage ( vKey )

The RemoveImage method syntax has the following parts:

 

Name

Type

Description

Object

AImageList

AImageList control

vKey

Val Variant

An integer (Index property) or unique string (Name property) that specifies the image to be removed.

Comments

To remove all AImageListImage objects, use the Clear method.

Example

The following example will remove the third AImageListImage object:

imgl.RemoveImage(2)

Applies to

AImageList

See Also

Clear, InsertImage, MoveImage, Overlay