ShellTreeViewCustomImages Property |
Contains an ImageList holding custom icons.
Namespace: Jam.ShellAssembly: ShellBrowser (in ShellBrowser.dll) Version: 7.2
Syntaxpublic ImageList CustomImages { get; set; }Public Property CustomImages As ImageList
Get
Set
public:
property ImageList^ CustomImages {
ImageList^ get ();
void set (ImageList^ value);
}member CustomImages : ImageList with get, set
Property Value
ImageListThe custom images.
Example
The image index of custom icons can be assigned in the
AddTreeNode eventhandler:
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