Click or drag to resize

ShellTreeViewCustomImages Property

Contains an ImageList holding custom icons.

Namespace:  Jam.Shell
Assembly:  ShellBrowser (in ShellBrowser.dll) Version: 6.2
Syntax
public ImageList CustomImages { get; set; }

Property Value

Type: ImageList
The custom images.
Examples
The image index of custom icons can be assigned in the AddTreeNode eventhandler:
C#
private void ShellTreeView1_AddTreeNodeCustomIcons(object sender, AddTreeNodeEventArgs e)
{
    if (e.Node.AbsoluteItemIdList.SpecialFolder == ShellFolder.MyMusic)
        e.Node.ImageIndex = e.Node.SelectedImageIndex = shellTreeView1.ImageList.Images.IndexOfKey("folder_music.png");

    //the following code clears the image of all root nodes in the ShellTree
    if (e.ParentNode == null)
    {
        e.Node.ImageIndex = shellTreeView1.EmptyIconIndex;
    }
}
See Also