With this function you can add a file or folder to the list.
function Add(const Path: UnicodeString; Checked: Boolean = false; pPos: integer = -1): TJamFileListItem; override; overload;
Parameters |
Description |
const Path: UnicodeString |
The path of thr file system object that should be added. |
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.
If folders should be listed below/above files when sorting, add folder paths with a trailing path delimiter. See SysUtils.IncludeTrailingPathDelimiter