<div class="meta" robots="noindex">

</div>

# ListBox.RowPicture

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2019r2. Please use `DesktopListBox.RowImageAt<desktoplistbox.rowimageat>` as a replacement.

</div>

## Description

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

## Notes

The ListBox row does not resize to accommodate the `Picture</api/graphics/picture>`. If your picture does not fit via <span class="title-ref">RowPicture</span>, use CellTextPaint or CellBackgroundPaint to draw the picture yourself.

## Sample code

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

``` xojo
Listbox1.RowPicture(0) = UserPhotoImage
```

## Compatibility

All projects types on all supported operating systems.
