Property ImageIndex
ImageIndex
Gets or sets the index of the image that is displayed for the items in this TreeView by default.
public virtual int? ImageIndex { get; set; }
Property Value
- int?
The zero-based index of the image in the ImageList that is displayed for the items in this TreeView by default. The default is
null
. Thenull
value means no image is displayed for the items by default.
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.