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

# TShellTreeNode

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

Represents tree nodes in TCustomShellTreeView / TShellTreeView.

## Declaration

Source position: shellctrls.pas line 413

`type TShellTreeNode = class(TTreeNode)`
`protected`
`FFileInfo: TSearchRec;` |  | Member used to store the TSearchRec instance with file or directory information for the tree node.
`procedure SetBasePath();` |  | Sets the value in the BasePath property.
`public`
`function ShortFilename;` |  | Gets the name for the item represented in the tree node.
`function FullFilename;` |  | Gets the full file name including path for the item represented in the tree node.
`function IsDirectory;` |  | Indicates if the tree node is a directory on the local file system.
`property BasePath: string; [r]` |  | Contains the base path to the file system object in the tree node.
`end;`

## Inheritance

`TShellTreeNode` |  | Represents tree nodes in TCustomShellTreeView / TShellTreeView.
`TTreeNode` |  | Implements a tree node displayed in a TTreeView control.
`TPersistent`
?
`TObject`

## Description

TShellTreeNode is a TTreeNode descendant which represents tree nodes in TShellTreeView. TShellTreeNode extends the ancestor class with properties and methods needed to work with files or directories on the local file system. It includes an internal TSearchRec instance for the file system object stored when the node is created by a Shell tree view control.

TShellTreeNode is the class type used to create new nodes in the TCustomShellTreeView.CreateNode method.

## See also

TCustomShellTreeView.CreateNode |  | Creates a new tree node for the shell control.