Class

WebListBoxStyleRenderer


Description

Allows WebStyle.

Properties

Name

Type

Read-Only

Shared

CellOnly

Boolean

Value

String

Methods

Name

Parameters

Returns

Shared

Constructor

Style As WebStyle, Value As String

Property descriptions


WebListBoxStyleRenderer.CellOnly

CellOnly As Boolean

If True, the WebStyle affects the designated cell only. If False, the WebStyle is applied to the entire row.

The default value is True, thus styles applied affect the designated cell only by default.


WebListBoxStyleRenderer.Value

Value As String

The default value for any cell to which the WebListBoxCellRenderer is assigned.

Method descriptions


WebListBoxStyleRenderer.Constructor

Constructor(Style As WebStyle, Value As String)

Note

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

Creates a WebListBoxStyleRenderer from the values passed.

Notes

If you indicate a font in the WebStyle, it must be available to the user's browser. That means it must be:

  • Installed in the browser

  • Installed on the device

  • Downloaded at runtime

To download fonts at runtime, you must include a URL for the font in the WebApplication property. This can be done in the IDE via the Inspector. Google one of several places where you can find fonts that can be used freely. There you can choose fonts and get a URL for embedding the fonts at runtime in your application.

Applied WebStyle property to True.

Sample code

This example in the Opening event of a WebListBox adds a blank row, creates a WebStyle, adds it to the WebListBoxStyleRenderer along with some sample text and then assigns it to the cell of the WebListBox:

'Create an empty row
Me.AddRow("")

'Create a webstyle
Var style As New WebStyle
style.BackgroundColor = Color.Yellow
style.BorderColor = Color.Green
style.BorderThickness = 3
Style.Bold = True

'Create a renderer from the webstyle and some text
Var cellRenderer As New WebListBoxStyleRenderer(style, "Hello World!")

'Assign the renderer to the cell
Me.CellTextAt(0,0) = cellRenderer

Compatibility

Web projects on all supported operating systems.