[Overview][Types][Classes][Procedures and functions][Index] | Reference for unit 'ShellCtrls' (#lcl)

# TCustomShellListView.OnFileAdded

Event handler signalled when a file is added to the Items in the control.

## Declaration

Source position: shellctrls.pas line 287

`protected property TCustomShellListView.OnFileAdded : TCSLVFileAddedEvent read FOnFileAdded write FOnFileAdded;`

## Description

OnFileAdded is a TCSLVFileAddedEvent property representing the event handler signalled when a file is added to the Items in the control. Applications must implement and assign an object procedure to the event handler to respond to the event notification. See TCSLVFileAddedEvent for information about the arguments passed to the event handler.

OnFileAdded is signalled (when assigned) from the PopulateWithRoot method after calling DoAddItem and OnAddItem, and after the list item has been added to the Items property.

## See also

TCSLVFileAddedEvent |  | Specifies an event handler signalled when an item is added to TCustomShellListView.
TCustomShellListView.PopulateWithRoot |  | Fills the list view with file system information for the directory in Root.
TCustomShellListView.DoAddItem |  | Signals the OnAddItem event handler when an entry is added to the Items in the control.
TCustomShellListView.OnAddItem |  | Event handler signalled to determine if the specified file information can be added to the Items for the list view.
TCustomShellListView.Items |  | Collection of list items displayed on the list view control.