Click or drag to resize

TreeView.EnableSort Method (Typed)

X#
Register a user-defined method to use for sorting items in the tree view.

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD EnableSort(
	symMethodName AS SYMBOL
) AS VOID
Request Example View Source

Parameters

symMethodName
Type: Symbol
The symbolic name of the user-defined method that will be used to sort items in the tree view. When called, this method receives two TreeViewItem objects as arguments. The method should determine which of the two tree view items should come first in the tree view. If the first item precedes the second, this method should return -1; if the second item precedes the first, this method should return 1; if the items are equivalent, this method should return 0.

Return Value

Type: 
The symbolic name of the user-defined method that will be used to perform the sort.
See Also