Returns the index used to identify the object.
[ lIndex = ] Object.Index
The Index property syntax has the following parts:
Name |
Type |
Description |
Object |
AImageListImage |
AImageListImage object |
lIndex |
Long |
An integer specifying the index used to identify the object. |
The Index property is set by default to the order of the creation of objects in a collection. The index for the first object in a collection will always be zero (0).
The value of the Index property of an object can change when objects in the collection are reordered, such as when you insert a new object. If you expect the Index property to change dynamically, it may be more useful to refer to objects in a collection by using the Name property.
The following statement inserts a new AImageListImage object before the specified image specified by Index:
imgl.InsertImage(imgli.Index)