Class

# WebListBoxImageRenderer

<div class="rst-class">

forsearch

</div>

Listbox

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

## Description

Used to draw a picture in a `WebListBox</api/user_interface/web/weblistbox>` cell.

## Properties

<div class="rst-class">

table-centered_columns_3_and_4

</div>

| Name                                         | Type                               | Read-Only | Shared |
|----------------------------------------------|------------------------------------|-----------|--------|
| `Centered<weblistboximagerenderer.centered>` | `Boolean</api/data_types/boolean>` |           |        |
| `URL<weblistboximagerenderer.url>`           | `String</api/data_types/string>`   |           |        |

## Methods

<div class="rst-class">

table-centered_column_4

</div>

| Name                                                | Parameters                                                                                                             | Returns | Shared |
|-----------------------------------------------------|------------------------------------------------------------------------------------------------------------------------|---------|--------|
| `Constructor<weblistboximagerenderer.constructor0>` | url As `String</api/data_types/string>`, centered As `Boolean</api/data_types/boolean>` = `False</api/language/false>` |         |        |

## Property descriptions

<div id="weblistboximagerenderer.centered">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBoxImageRenderer.Centered

**Centered** As `Boolean</api/data_types/boolean>`

> If `True</api/language/true>`, the image will be centered with the cell.

<div id="weblistboximagerenderer.url">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBoxImageRenderer.URL

**URL** As `String</api/data_types/string>`

> The URL that will be used to retrieve the image.

## Method descriptions

<div id="weblistboximagerenderer.constructor0">

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

</div>

<div class="rst-class">

forsearch

</div>

WebListBoxImageRenderer.Constructor

**Constructor**(url As `String</api/data_types/string>`, centered As `Boolean</api/data_types/boolean>` = `False</api/language/false>`)

> <div class="note">
>
> <div class="title">
>
> Note
>
> </div>
>
> `Constructors</api/language/constructor>` are special methods called when you create an object with the `New</api/language/new>` keyword and pass in the parameters above.
>
> </div>
>
> Creates a new object from the values passed.

## Sample code

This example retrieves a picture from a URL and displays it in the first cell of a `WebListBox</api/user_interface/web/weblistbox>`:

``` xojo
Me.AddRow("")

Var pic As New WebListBoxImageRenderer

pic.URL = "https://www.publicdomainpictures.net/pictures/120000/nahled/small-waterfall-in-forest.jpg"
Me.CellRendererAt(0, 0) = pic
```

## Compatibility

|                       |     |
|-----------------------|-----|
| **Project Types**     | Web |
| **Operating Systems** | All |

<div class="seealso">

`WebListBoxCellRenderer</api/web/weblistboxcellrenderer>` parent class; `WebListBox</api/user_interface/web/weblistbox>` control; `WebListBoxCellRenderer</api/web/weblistboxcellrenderer>`, `WebListBoxStyleRenderer</api/web/weblistboxstylerenderer>`, and `WebListBoxDateTimeRenderer</api/web/weblistboxdatetimerenderer>` classes.

</div>
