| Visual Basic (Declaration) | |
|---|---|
Public Sub SortByPosition() | |
| C# | |
|---|---|
public void SortByPosition() | |
By default, the nodes in the UltraTree.SelectedNodes collection are in the order in which they were added to the collection. This generally means they are in the order in which they were UltraTreeNode.Selected.
Calling the SortByPosition method will sort the TreeNodes so that they are in the same order as they appear in the UltraTree.
