Method AddFolderWithFlags
AddFolderWithFlags(string?, string, SvgImage?, FolderAdditionFlags)
Adds a folder to the collection with the specified title, path, and optional image, applying the specified folder addition flags.
public virtual bool AddFolderWithFlags(string? title, string path, SvgImage? image = null, FileListBox.FolderAdditionFlags flags = FolderAdditionFlags.LookupAll)
Parameters
titlestringThe title of the folder. If
titleis null andflagsincludes LookupTitle, the title will be retrieved from existing folder information, if available.pathstringThe path of the folder to add. This parameter cannot be null or empty.
imageSvgImageAn optional image associated with the folder. If
imageis null andflagsincludes LookupImage, the image will be retrieved from existing folder information, if available.flagsFileListBox.FolderAdditionFlagsA combination of FileListBox.FolderAdditionFlags values that specify additional behavior when adding the folder, such as looking up the title or image from existing folder information.
Returns
Remarks
If folder information is available for the specified path, the
method can use it to populate the title or image based on
the specified flags.