ListBox.CellTypeAt
From Xojo Documentation
Property (As ListBox.CellTypes )
aListBox.CellTypeAt(Row as Integer, Column as Integer) = newListBox.CellTypesValue
or
ListBox.CellTypesValue = aListBox.CellTypeAt(Row as Integer, Column as Integer)
New in 2019r2
Supported for all project types and targets.
or
ListBox.CellTypesValue = aListBox.CellTypeAt(Row as Integer, Column as Integer)
New in 2019r2
Supported for all project types and targets.
Sets the type of the passed cell. Row and Column are zero-based.
Notes
The cell type can be set with ListBox.CellTypes.
Example
This code shows a checkbox in a single cell:
ListBox1.CellTypeAt(0, 4) = Listbox.CellTypes.Checkbox // Cell in the 1st row, 5th column now shows a checkbox
To set or use the value of the Cell's checkbox see both the CellCheckBoxValueAt property (boolean) and CellCheckBoxStateAt method (Checked\Unchecked\Indeterminate). This code uses CellCheckboxStateAt to set the cell to be checked:
ListBox1.CellCheckBoxStateAt(0, 4) = CheckBox.VisualStates.Checked