ListBox.InsertFolder
From Xojo Documentation
This item was deprecated in version 2019r2. Please use ListBox.AddExpandableRowAt as a replacement. |
Method
ListBox.InsertFolder(RowNumber as Integer, Item as String, [Indent as Integer])
Supported for all project types and targets.
Supported for all project types and targets.
Creates a new folder at row (zero-based), moving the existing rows down. The text is always assigned to column zero. The optional parameter indent specifies the amount of indentation of the folder in hierarchical ListBoxes. The default is zero. It has no effect on non-hierarchical ListBoxes.
Example
The following example in a PushButton adds a row to the hierarchical ListBox that is used for the example in AddFolder. It simply adds a new state to the hierarchical list of cities and states.
Listbox1.InsertFolder(1, "New Hampshire")