Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxPSExplorerFolder.CreateFolder Method

Creates a new folder within the current folder.

#Declaration

Delphi
function CreateFolder: TdxPSExplorerFolder; virtual;

#Returns

Type
TdxPSExplorerFolder

#Remarks

Use the CreateFolder method to create a new child folder within the current folder. The method returns an object representing the folder created. Use this object’s properties and methods to initialize the folder as needed. To set the folder’s name, use the returned object’s Name property.

Note that you can also use the explorer’s CreateNewFolder method to perform the same task, in that case, you will pass the parent folder as the method’s parameter.

When using the explorer components (TdxPSFileBasedExplorer and TdxPSDBBasedExplorer), the method will return either the TdxPSFileBasedExplorerFolder or TdxPSDBBasedExplorerFolder object respectively. Thus, you will then need to perform typecasts to use the created folder’s specific members.

See Also