Property ImageIndex
ImageIndex
Gets or sets the index of the image that is displayed for the item.
public int? ImageIndex { get; set; }
Property Value
- int?
The zero-based index of the image in the ImageList that is displayed for the item. The default is
null
. Thenull
value means the default image specified by ImageIndex property is used.
Remarks
The effect of setting this property depends on the value of the ImageList property. You can specify which images from the list are displayed for items by default by setting the ImageIndex property. Individual TreeViewItem objects can specify which image is displayed by setting the ImageIndex property. These individual TreeViewItem settings will override the settings in the corresponding TreeView properties.