InsertImage Method (AImageList)

Inserts an image object into the object and returns a reference to the created object.

Syntax

Object.InsertImage ( [ vKey ] ) [ = lImageListImage ]

The InsertImage method syntax has the following parts:

 

Name

Type

Description

Object

AImageList

AImageList control

vKey

Val Variant

The parameter which specifies the AImageListImage object. This can be a position (index) or a string (image name).

lImageListImage

AImageListImage

AImageListImage object.

Comments

Use this method to create an AImageListImage object and insert the newly created object before the specified image.

If vKey is omitted or out-of-range the newly created image will be added to the end of the images collection.

Example

The following example will insert an AImageListImage object:

imgl1.InsertImage()

Applies to

AImageList

See Also

Clear, MoveImage, Overlay, RemoveImage