Engine.GetImageIndex

Syntax

Engine.GetImageIndex( imageName)

Return Value

Long

The index of the image in both of the engine image lists. Returns -1 if the image name is not found.

Purpose

Returns the index of the image with the specified name, which you can use to access the list of images returned from the Engine.LargeImageListEx and Engine.SmallImageListEx properties.

Parameters

imageName As String

[In] Specifies the name of the image. Typically, the name includes a filename and the extension.

See Also

Engine.AddImage

Engine.GetImageName

Engine.LargeImageListEx

Engine.NumImages

Engine.SmallImageListEx