NGTreeNodeCollectionAddSorted Method |
Adds a tree node to a collection into a certain position. The new node is inserted at the first position
where the comparison between the new tree node and the existing nodes returns a value less than or equal to zero.
Namespace: Altaxo.CollectionsAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax void AddSorted(
NGTreeNode node,
Func<NGTreeNode, NGTreeNode, int> comparison
)
Parameters
- node NGTreeNode
- The node to add.
- comparison FuncNGTreeNode, NGTreeNode, Int32
- The comparison function. Arguments are i) the new node, ii) the existing node. Return value is a comparison between new and existing node.
See Also