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

# TDirectoryEdit.Directory

The Directory selected by the dialog.

## Declaration

Source position: editbtn.pas line 508

`published property TDirectoryEdit.Directory : string read GetDirectory write SetDirectory;`

## Description

Directory is a String property which contains the active directory, and the value displayed in the Edit for the control.

Directory and RootDir determine the values used in the Select Directory dialog executed when the Button is clicked for the control. When Directory is a valid file path on the local file system, it is used as the initial directory displayed in the dialog. Otherwise, the value in RootDir is used as the initial directory and Directory is used as the file name in the dialog.

The value in Directory is updated in the RunDialog method when the dialog for the control has been executed successfully.

## See also

TDirectoryEdit.RootDir |  | The root directory for file system navigation in the control.
TDirectoryEdit.RunDialog |  | Executes the dialog for the control and stores the return value.
TDirectoryEdit.GetDialogResult |  | Gets the result from the specified dialog.
TDirectoryEdit.OnAcceptDirectory |  | OnAcceptDirectory - event handler for accepting the name of a directory.