CustomFileListTAddItem Event |
This event is fired if a file is to be added to the listview. It is possible to change details of the item or to prevent
adding the file by setting the CanAdd flag in the
AddItemEventArgs to false.
Namespace:
Jam.Shell
Assembly:
ShellBrowser (in ShellBrowser.dll) Version: 7.1
Syntax public event EventHandler<AddFileItemEventArgs> AddItem
Public Event AddItem As EventHandler(Of AddFileItemEventArgs)
public:
event EventHandler<AddFileItemEventArgs^>^ AddItem {
void add (EventHandler<AddFileItemEventArgs^>^ value);
void remove (EventHandler<AddFileItemEventArgs^>^ value);
}
member AddItem : IEvent<EventHandler<AddFileItemEventArgs>,
AddFileItemEventArgs>
Value
Type:
SystemEventHandlerAddFileItemEventArgsExamples
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