TreeView Xojo plugin

TreeView.Swap Method

Swaps root level nodes in the tree.

Swap(
   indexA as Integer,
   indexB as Integer)

Parameters

indexA
The index of one of the node to be swapped.
indexB
The index of the other node to be swapped.

Remarks

IndexA and IndexB are zero based and relative to the parent node (the root in this case). That is the first child node of the parent node is number zero.

The Swap method may trigger redraw. If doing many swaps in one round then use the LockDrawing property to prevent redraw between swaps.

See Also

TreeView Control