Click or drag to resize

NGTreeNodeMoveUpDown Method

This procedure will move up or move down some nodes in the tree.

Namespace: Altaxo.Collections
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static void MoveUpDown(
	int iDelta,
	NGTreeNode[] selNodes
)

Parameters

iDelta  Int32
Number of movement steps. Value less than zero will move up the nodes in the tree, values greater null will move down the nodes in the tree.
selNodes  NGTreeNode
Nodes to move.
Remarks
The following assumptions must be fullfilled:

First, the nodes are filtered: If the array contain both a parent node and child nodes of this parent node, the child nodes will be not moved.

The remaining nodes must have the same parent, otherwise an exception is thrown.

See Also