ShellBrowser Delphi Components Documentation
ContentsIndexHome
PreviousUpNext
JamControls.TJamFileList.Add

Adds elements to the list.

Syntax
Pascal
function Add(const pItemIdList: IItemIdList; Checked: Boolean = false; pPos: integer = -1): TJamFileListItem; override; overload;
Parameters 
Description 
const pItemIdList: IItemIdList 
The IItemIdList of the element that should be added. It must be an absolute ItemIdList. 
Checked: Boolean = false 
Optional, the default value is false. Pass True if the item should be checked initially, False if it should be unchecked. 
pPos: integer = -1 
Pass a valid list index to insert the item 

The list item that has been created to represent the added object.

The passed ItemIdList can represent a file system path or a virtual element without a physical path. For the latter, the FileSystemOnly property must be set to false, else an exception will be thrown.

The following example illustrates how to add virtual folder "This PC" to the file list.

  lFileList.FileSystemOnly := false;
  lFileList.Add(TJamItemIdList.CreateForSpecialFolder(SF_DRIVES));