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

# TShellTreeNode.ShortFilename

Gets the name for the item represented in the tree node.

## Declaration

Source position: shellctrls.pas line 420

`public function TShellTreeNode.ShortFilename: string;`

## Function result

Name for the item represented in the tree node without path information.

## Description

ShortFilename is a String function used to get the short file name for the item represented in the tree node. The return value contains the value in the Text property for the tree node, and represents the name for the file system entry without drive or path information.

Use FullFilename to get the complete name which includes complete path information for the item represented in the tree node.

## Version info

Modified in LCL version 2.2.2 to remove direct access to the internal TSearchRec instance for the node when getting the property value.

## See also

TShellTreeNode.FullFilename |  | Gets the full file name including path for the item represented in the tree node.
TTreeNode.Text |  | Text displayed for the tree node.