ListBox.RowPicture

From Xojo Documentation

Method

ListBox.RowPicture(RowNumber as Integer) As Picture

Supported for all project types and targets.

Adds the picture assigned to the passed row index (zero-based).

Notes

The ListBox row does not resize to accommodate the Picture. If your picture does not fit via RowPicture, use CellTextPaint or CellBackgroundPaint to draw the picture yourself.

Example

The following example draws a picture in the first cell. The picture has been added to the project.

Listbox1.RowPicture(0) = UserPhotoImage