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

TShellListItem

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

Implements the class used for list items maintained in TShelllListView.

Declaration

Source position: shellctrls.pas line 244

type TShellListItem = class(TListItem)

public

  function isFolder;

  

Checks for the directory attribute in the file system information for the list item.

  property FileInfo: TSearchRec; [rw]

  

File system information about the list item.

end;

Inheritance

TShellListItem

  

Implements the class used for list items maintained in TShelllListView.

|

TListItem

  

Represents the items created in TCustomListView and descendants.

|

TPersistent,IFPObserved

|

TObject

Description

TShellListItem is a TListItem descendant which implements the class used for the list items in the TShellListView control. It extends the ancestor class with the FileInfo property used for file system information about the list item. It also includes the IsFolder method to identify whether the list item is a directory on the local file system.

TShellListItem is the default class type used to create a new list item in the TCustomShellListView.CreateListItem method. It can, however be overridden by using an OnCreateItemClass event handler in the shell list view control. It is also used in the PopulateWithRoot method in TCustomShellListView to cast a new TFileItem instance created when the a file is added to the Items for the control.

Version info

Added in LCL version 3.0.

See also

TCustomShellListView.CreateListItem

  

Create a new entry added to the Items for the shell control.

TCustomShellListView.PopulateWithRoot

  

Fills the list view with file system information for the directory in Root.

TCustomShellListView.Items

  

Collection of list items displayed on the list view control.

TCustomListView.OnCreateItemClass

TFileItem.Create

  

Constructor for the class instance.

TListItem

  

Represents the items created in TCustomListView and descendants.

TListItems.Add

  

Adds a new list item to the container.


Version 3.2 Generated 2024-02-25 Home