ShellBrowser Delphi Components Documentation
ContentsIndexHome
PreviousUpNext
ShellControls.TJamShellList.SelectedFiles

Provides a list of all selected files.

Syntax
Pascal
property SelectedFiles: TStrings;

This property provides access to a list of all files including their extension, which are currently selected in the TJamShellList. Dependent on the user settings, the file names in the ListView may be displayed without extension, which makes it difficult to further process them. You can also use the SelectedFiles property to add files to the selection by using SelectedFiles.Add method (see example below).

This example will add all selected files to a TMemo:

for i:=0 to JamShellList.SelectedFiles.Count-1 do
Memo.Lines.Add(JamShellList.SelectedFiles[i]);

The second example adds the file README.TXT (if present) to the selected files in the TJamShellList:

JamShellList.SelectedFiles.Add('README.TXT');