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

TFileItem

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Provides information about a file or directory on the local file system for use in file sort comparison routines.

Declaration

Source position: shellctrls.pas line 61

type TFileItem = class(TObject)

public

  isFolder: Boolean;

  

True when the item represents a folder on the local file system.

  constructor Create();

  

Constructor for the class instance.

  property BasePath: string; [r]

  

Path to the directory where the file item is stored on the local file system.

  property FileInfo: TSearchRec; [rw]

  

TSearchRec instance with information about the file or directory in the item.

end;

Inheritance

TFileItem

  

Provides information about a file or directory on the local file system for use in file sort comparison routines.

|

TObject

Description

TFileItem is a utility class used to represent a file or directory. It contains BasePath with the path to the directory where the item is located on the local file system, and FileInfo with the TSearchRec values for the item.

TFileItem is the type used to represent the items passed as arguments to a TFileItemCompareEvent handler routine. TFileItem instances are created and used in the implementation of file listing and sort routines as well.

Version info

Modified in LCL version 3.0. It was moved from the implementation section to the interface section, and used to implement TFileItemCompareEvent routines.

See also

TCustomShellTreeView.PopulateTreeNodeWithFiles

  

Adds tree nodes for file system objects found starting at the specified node / path.

TCustomShellTreeView.OnAddItem

  

Event handler signalled when an item (tree node) is added to the shell control.

TCustomShellTreeView.OnSortCompare

  

Event handler signalled to compare file items in a custom sort routine.

TCustomShellTreeView.FileSortType

  

Indicates how the items should be sorted in the tree.

TFileItemCompareEvent

  

Implements a handler routine used to compare values in a custom file sort for TCustomShellTreeView.


Version 3.2 Generated 2024-02-25 Home