Click or drag to resize

JamBaseShellListViewSmallCustomImages Property

Gets or sets an ImageList holding images that can be used as custom images in small viewstates.

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

Property Value

Type: ImageList
An imagelist holding small images (typically 16x16, larger images will be scaled).
Examples
C#
// Use a custom icon for text files.
// Note: Using the ActiveImageList makes sure, the imagelist matching the current view style is addressed.
private void ShellListView1_AddItemCustomIcon(object sender, AddItemEventArgs e)
{
    if (System.IO.Path.GetExtension(e.Item.FullPath).ToUpperInvariant() == ".TXT")
    {
        e.Item.ImageIndex = shellListView1.ActiveImageList.Images.IndexOfKey("document_text.png");
    }
}
See Also