TreeView Xojo plugin

DesktopTreeView.SaveExpandState Method

Saves the expand state of the TreeView, optionally taking in comparer to do custom node comparison.

SaveExpandState(
   nodeComparer as TreeViewExpandState.CompareNodeDelegate) as TreeViewExpandState

Parameters

nodeComparer
Optional parameter which is by default nil. When using the default setting then nodes are compared by their Text. If you have subclassed the TreeViewNode to store for example Database record id behind then using custom comparer would be good idea to get better comparer.

Returns

TreeViewExpandState
A TreeViewExpandState object instance.

Remarks

Comparison is used to compare the new tree to the old when you have for example refreshed your TreeView totally, then new nodes are compared to the old.

See Also

DesktopTreeView Control