Class
WebListBoxImageRenderer
Description
Used to draw a picture in a WebListBox cell.
Methods
Name |
Parameters |
Returns |
Shared |
---|---|---|---|
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.
See also
WebListBoxCellRenderer parent class; WebListBox control; WebListBoxCellRenderer, WebListBoxStyleRenderer, and WebListBoxDateTimeRenderer classes.