Sign in Join
FPDoc Onlineexperiment

TCustomShellTreeView.GetPathFromNode function

Member of TCustomShellTreeViewpublicIn unit ShellCtrls

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

Declaration

pascal
function GetPathFromNode(ANode: TTreeNode): string

Description

GetPathFromNode casts the tree node in ANode to a TShellTreeNode type to access the file system-specific properties and methods for the node.

When IsDirectory returns True, the return value contains the path to the folder with a trailing path delimiter. Otherwise, the return value has the fully-qualified path for the file.

An absolute path in the return value includes the root directory prepended to the value.

See also

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