Click or drag to resize

TreeNodeExtensionsInsertLastT Method

Inserts the specified node after all other siblings of the node at a certain index in the tree.

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

Parameters

rootNode  T
The root node of the tree.
index  IEnumerableInt32
The index inside the tree that points to a node. The nodeToInsert is inserted at the end of the same collection that this node belongs to.
nodeToInsert  T
The node to insert.

Type Parameters

T
Type of node.

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