The root item's sort setting.
Usage
Set_Property(OLECtrlEntID, "OLE.RootSort", OptionValue)
Values
OptionValue can be set to one of the following valid options:
Value | Abbr. | Description |
---|---|---|
None | N | No automatic sorting |
Ascending | A | Root level items are sorted in ascending order |
Descending | D | Root level items are sorted in descending order |
Default: None
Remarks
The RootSort property establishes how the Root Item's children are sorted. The Root Item is the implicit parent item of the entire tree, so this property sorts all root level items.
See Sorting for more details on how the SRP Tree Control sorts tree items.
This property establishes a persistent sort setting. If you want to perform a one-time-only sort, use the the Sort method instead.
Example
// Sort all root level items in ascending order Set_Property(@Window:".OLE_TREE", "OLE.RootSort", "A")