ListItem.setStateImageIndex

Overview | Methods | This Package | All Packages

ListItem.setStateImageIndex

Sets the index of the state image (an image such as a checked or cleared check box that indicates the state of the item) that appears next to this item.

Syntax

public void setStateImageIndex( int imageIndex )

Parameters

imageIndex

The zero-based index within an ImageList object of the state image that appears next to this item.

Exceptions

WFCInvalidArgumentException thrown if the specified index is not valid.

Remarks

Either the stateImageList must be set to an ImageList object or the checkBoxes property must be set to true for the state images to appear next to the items. 

See Also   getStateImageIndex