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

TCustomShellTreeView.Items

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

Declaration

Source position: shellctrls.pas line 146

public property TCustomShellTreeView.Items : TTreeNodes;

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

TCustomShellTreeView.CreateNode

  

Creates a new tree node for the shell control.

TCustomShellTreeView.NodeHasChildren

  

Determines whether the specified tree view Node has child nodes.

TCustomShellTreeView.PopulateTreeNodeWithFiles

  

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

TCustomShellTreeView.DoSelectionChanged

  

Performs actions needed when a new item is selected in the shell control.

TCustomShellTreeView.GetPathFromNode

  

Returns the path (including the file name) for the file system object represented in the specified node.

TShellTreeNode

  

Represents tree nodes in TCustomShellTreeView / TShellTreeView.

TCustomTreeView.Items

  

The container with the TTreeNode instances for the control.

TCustomTreeView.OnCreateNodeClass

  

Event handler signalled to get the class reference used to create new tree nodes.


Version 4.0 Generated 2025-05-03 Home