JamBaseShellListViewThumbnailUpdated Event |
This event is fired for each item in Thumbnail view. It can be used to update the thumbnail.
Namespace:
Jam.Shell
Assembly:
ShellBrowser (in ShellBrowser.dll) Version: 7.1
Syntax public event EventHandler<ThumbnailUpdatedEventArgs> ThumbnailUpdated
Public Event ThumbnailUpdated As EventHandler(Of ThumbnailUpdatedEventArgs)
public:
event EventHandler<ThumbnailUpdatedEventArgs^>^ ThumbnailUpdated {
void add (EventHandler<ThumbnailUpdatedEventArgs^>^ value);
void remove (EventHandler<ThumbnailUpdatedEventArgs^>^ value);
}
member ThumbnailUpdated : IEvent<EventHandler<ThumbnailUpdatedEventArgs>,
ThumbnailUpdatedEventArgs>
Value
Type:
SystemEventHandlerThumbnailUpdatedEventArgsRemarks The event is not called if a custom image index has been assigned to the item.
Examples
private void ShellListView1_ThumbnailUpdated(object sender, Shell.ThumbnailUpdatedEventArgs e)
{
if (e.Item.IsFolder)
{
using (Graphics g = Graphics.FromImage(e.Thumbnail))
using (Pen p = new Pen(SystemBrushes.Control, 1))
{
g.DrawRectangle(p, 0, 0, e.Thumbnail.Width - 1, e.Thumbnail.Height - 1);
}
}
}
See Also