Gets or sets the image list index value of the image that is displayed when the tree node is in the selected state.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
The following code example creates and assigns an ImageList to a TreeView control and fills the TreeView control with TreeNode objects. The tree nodes are assigned images from the ImageList that is displayed when the tree node is in a selected or unselected state. This example requires that you have a Form containing a TreeView, and an ArrayList containing Customer objects that each contain Order objects. It also requires that the Customer and Order objects are defined.