GetItemImageState Function

Class

ListView and TreeView.

Action

Returns the index into the state image list for treeviews and listviews.

Availability

This functionality is supported only if you are using the Classic Agent.

Syntax

iState = object.GetItemImageState(liItem)
Variable Description
iState State of the checkbox image icon. INTEGER.
liItem Item in the listview or treeview. LISTITEM.

Notes

The state image index specifies the index of the image in the state image list. This method or the GetItemImageIndex method should be used to retrieve the state of the checkbox icon.