Property ImageList
ImageList
Gets or sets the ImageList to use when displaying item images in the control.
public virtual ImageList? ImageList { get; set; }
Property Value
- ImageList
An ImageList that contains the images to use for items in the TreeView. The default is
null
.
Remarks
If the ImageList property value is anything other than
null
, all the tree items display the
first Image stored in the ImageList.
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.