Class

WebListBoxImageRenderer


Description

Used to draw a picture in a WebListBox cell.

Properties

Name

Type

Read-Only

Shared

Centered

Boolean

URL

String

Methods

Name

Parameters

Returns

Shared

Constructor

URL As String, Centered As Boolean = False

Property descriptions


WebListBoxImageRenderer.Centered

Centered As Boolean

If True, the image will be centered with the cell.


WebListBoxImageRenderer.URL

URL As String

The URL that will be used to retrieve the image.

Method descriptions


WebListBoxImageRenderer.Constructor

Constructor(URL As String, Centered As Boolean = False)

Note

Constructors are special methods called when you create an object with the New keyword and pass in the parameters above.

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:

Me.AddRow("")
Var pic As New WebListBoxImageRenderer
pic.URL = "https://www.publicdomainpictures.net/pictures/120000/nahled/small-waterfall-in-forest.jpg"
Me.CellTextAt(0,0) = pic

Compatibility

Web projects on all supported operating systems.