Click or drag to resize

ProjectFoldersAddFolderNodeRecursively(String, DictionaryString, NGTreeNode) Method

Add a NGTreeNodes corresponding to the folder name recursively for all parts of the folder name so that a hierarchy of those nodes is built-up. If the folder name is already represented by a tree node (i.e. is present in the folderDictionary), this node is returned. If not, the node is created and added to the folder dictionary as well as to the nodes collection of the parent tree node. If the parent tree node is not found in the folderDictionary, this function is called recursively to add the parent tree node.

Namespace: Altaxo.Main
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static NGTreeNode AddFolderNodeRecursively(
	string folderName,
	Dictionary<string, NGTreeNode> folderDictionary
)

Parameters

folderName  String
The folder name to add.
folderDictionary  DictionaryString, NGTreeNode
Dictionary that relates the full folder name to the already built-up tree nodes. At least the root node (key is the RootFolderName has to be present in the dictionary. The newly created folder nodes are also added to this dictionary.

Return Value

NGTreeNode
The tree node corresponding to the provided folder name.
See Also