MoveImage Method (AImageList)

Moves an image object of the object.

Syntax

Object.MoveImage ( vKey, vKeyMoveTo )

The MoveImage 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).

vKeyMoveTo

Val Variant

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

Comments

Use this method to move an AImageListImage object to a new position within the images collection.

Example

The following example will move "FileSave" image to a new position before "FileOpen" image:

imgl.MoveImage("FileSave", "FileOpen")

Applies to

AImageList

See Also

Clear, InsertImage, Overlay, RemoveImage