Click or drag to resize

TreeNodeExtensionsAnyBetweenHereAndLeavesT Method

Searches for any node starting from the provided node down to the leaves that satisfies the given condition.

Namespace: Altaxo.Collections
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public static T AnyBetweenHereAndLeaves<T>(
	this T node,
	Func<T, bool> condition
)
where T : class, Object, ITreeNode<T>

Parameters

node  T
The starting node for the search.
condition  FuncT, Boolean
The condition that the found node should satisfy.

Type Parameters

T
The type of the node.

Return Value

T
The first node that matches the condition, or null if no such node is found.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type T. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also