ProjectFoldersAddFolderNodeRecursivelyT(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.MainAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static NGTreeNode AddFolderNodeRecursively<T>(
string folderName,
Dictionary<string, NGTreeNode> folderDictionary
)
where T : new(), NGTreeNode
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.
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:Altaxo.Main.ProjectFolders.AddFolderNodeRecursively``1(System.String,System.Collections.Generic.Dictionary{System.String,Altaxo.Collections.NGTreeNode})"]
Return Value
NGTreeNodeThe tree node corresponding to the provided folder name.
See Also