Inserts an image object into the object and returns a reference to the created object.
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 object. |
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.
The following example will insert an AImageListImage object:
imgl1.InsertImage()