DesktopListBox.AddRowAt

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Method

DesktopListBox.AddRowAt(RowNumber as Integer, Item as String, [Indent as Integer])

New in 2021r3

Supported for all project types and targets.

Creates a new row at row, moving the existing rows below row down. For multicolumn ListBoxes, text is always assigned to column zero. The optional parameter indent specifies the amount of indentation of the row in hierarchical ListBoxes. The default is zero. It has no effect on non-hierarchical ListBoxes.

Example

The following example inserts a row in the 'ListBox. The code is in a DesktopButton.

Listbox1.AddRowAt(1, "Steven")

See Also

DesktopListBox.RowDepth