Skip to main content

TdxPSFileBasedExplorer.CanGoToUpOneLevel Method

Determines whether the explorer can change its root path to make it one level higher.

Declaration

function CanGoToUpOneLevel: Boolean; virtual;

Returns

Type
Boolean

Remarks

The file based explorer component enables end-users to change the root folder at runtime using the Up One Level command available via the main and context menus. The CanGoToUpOneLevel method determines whether the corresponding menu items are enabled, additionally, it determines whether the GoToUpOneLevel method will be in effect. This method can be used to switch the explorer one level higher via code.

The CanGoToUpOneLevel method returns True if the current root path is not a volume. The current root path is specified by the RootPath property.

See Also