TreeNode.setImageIndex

Overview | Methods | This Package | All Packages

TreeNode.setImageIndex

Sets the index of the image that appears next to this node.

Syntax

public void setImageIndex( int value )

Parameters

value

Set to the zero-based index within an ImageList object of the image that appears next to this node when it is selected. Returns -1 if the imageIndex property of the node has never been explicitly set and the image that appears next to the node is specified in the TreeView.setImageIndex property of the tree view control that contains this node.

Remarks

If you have set the selectedImageIndex property of this node or of the tree view control that contains this node to a different image, that image will appear next to the node when the node is selected.

See Also   getImageIndex