Click or drag to resize

TreeNodeExtensionsEnsureValidityOfNodeIndexT Method

Ensures that a list of indices that point to a node in a tree is valid.

Namespace: Altaxo.Collections
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static bool EnsureValidityOfNodeIndex<T>(
	this T rootNode,
	IList<int> index
)
where T : Object, ITreeListNode<T>

Parameters

rootNode  T
The root node of the tree.
index  IListInt32
The index list. On return, it is ensured that this index list designates a valid index of a node inside the tree.

Type Parameters

T
Type of the tree node.

Return Value

Boolean
True if the index list was changed to ensure validity, False if it was not neccessary to change the index list.

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