Click or drag to resize

TreeNodeExtensionsHaveSameParentT Method

Determines whether a couple of nodes share the same parent node.

Namespace: Altaxo.Collections
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static bool HaveSameParent<T>(
	IEnumerable<T> nodes
)
where T : Object, INodeWithParentNode<T>

Parameters

nodes  IEnumerableT
The nodes.

Type Parameters

T
Type of node.

Return Value

Boolean
True if all nodes in the enumeration share the same parent. An exception is thrown if the enumeration is empty or contains empty elements.
See Also