Sign in Join
FPDoc Onlineexperiment

TCustomShellTreeView.Items property

Member of TCustomShellTreeViewpublicIn unit ShellCtrls

Contains the tree nodes used to represent the hierarchical tree structure for the tree view control.

Declaration

pascal
property Items: ;

Description

Items is a TTreeNodes property which contains the tree nodes which represent the tree structure for the control. In TCustomShellTreeView, and the TShellTreeView descendant, it is populated at run-time with TShellTreeNode instances instead of the TTreeNode type used in the ancestor class. This allows file system information to be included for the tree nodes. This occurs when the CreateNode method is called for the control, and results in TShellTreeNode being used as the TTreeNodeClass type for the derived control. An exception is raised if OnCreateNodeClass is implemented to return a type other than TShellTreeNode.

Methods which access or maintain the Items in TCustomShellTreeView always cast the node values to TShellTreeNode to access the file system-specific information.

In TCustomShellTreeView, Items is cleared and re-populated at run-time when a new value is assigned to the Root, FileSortType, or OnSortCompare properties.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.