Click or drag to resize

NGTreeNodeAreAllNodesFromSameLevel Method

Determines whether all nodes in the provided enumeration have the same level. This not neccessarily means that the nodes have to have the same parent; only the level must be the same. To test for the same parent, use the HaveSameParent(IEnumerableNGTreeNode) function.

Namespace: Altaxo.Collections
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static bool AreAllNodesFromSameLevel(
	IEnumerable<NGTreeNode> selNodes
)

Parameters

selNodes  IEnumerableNGTreeNode
The nodes to test.

Return Value

Boolean
True if all nodes have the same level.
See Also