Each item in a tree-view control can have up to four images associated with it.
- An image, such as an open folder, displayed when the item is selected.
- An image, such as a closed folder, displayed when the item is not selected.
- An overlay image that is drawn transparently over the selected or non-selected image.
- A state image: an additional image displayed to the left of the selected or non-selected image. You can use state images, such as checked and cleared check boxes, to indicate application-defined item states.
Use this property to get the image for the selected state of the item. To obtain the image for non-selected item, overlay image or state image, use the
StateImage properties respectively.
|TestObj||A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section|
The property is applied to the following object:
To view this property in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.
Picture object that contains the item’s image for the selected state.
To view an example that demonstrates how to use the
SelectedImage property, see Getting Tree View Item's Images in Desktop Windows Applications.