Click or drag to resize

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.Collections
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
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