Click or drag to resize

TreeNodeExtensionsFirstAncestorImplementingM, T Method

Returns the firsts ancestor of this node that has the type M.

Namespace: Altaxo.Collections
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static M FirstAncestorImplementing<M, T>(
	this T node
)
where M : class
where T : Object, INodeWithParentNode<T>

Parameters

node  T
The node. The first node being considered is the parent node of this node.

Type Parameters

M
The type to search for.
T
Type of the node.

Return Value

M

[Missing <returns> documentation for "M:Altaxo.Collections.TreeNodeExtensions.FirstAncestorImplementing``2(``1)"]

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