Skip to main content

TCustomdxPSExplorer.CreateNewFolder(TdxPSExplorerFolder) Method

Creates a new folder within the specified parent folder.

Declaration

function CreateNewFolder(AParent: TdxPSExplorerFolder): TdxPSExplorerFolder; virtual;

Parameters

Name Type
AParent TdxPSExplorerFolder

Returns

Type
TdxPSExplorerFolder

Remarks

Use the CreateNewFolder method to create a new folder within the reports hierarchy. The newly created folder is placed within its parent folder that is specified by the AParent parameter. The created folder object is returned by this method so you can modify its settings if required.

By default, folders created using the CreateNewFolder method get the ‘New Folder‘ name. If the parent folder already contains a folder with such a name, the ‘New Folder (2)‘ name is assigned, etc. Use the folder object’s Name property to change the folder name.

See Also