ShellTreeViewEmptyIconIndex Property | 
Gets the zero-based index of the empty icon.
Namespace: Jam.ShellAssembly: ShellBrowser (in ShellBrowser.dll) Version: 7.2
Syntaxpublic int EmptyIconIndex { get; }Public ReadOnly Property EmptyIconIndex As Integer
	Get
public:
property int EmptyIconIndex {
	int get ();
}member EmptyIconIndex : int with get
Property Value
Int32The empty icon index.
Example
            You can use the EmptyIconIndex to clear icon from selectively from the ShellTreeView.
            
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");
    
    if (e.ParentNode == null)
    {
        e.Node.ImageIndex = shellTreeView1.EmptyIconIndex;
    }
}
See Also