From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

WebLabel.SetHTML(html As String)

New in 2020r1

Supported for all project types and targets.

Renders the label with the HTML passed.

Sample Code

Sets the label's Value to "This text is red and blue." where the word red is in the color red and the word blue is in the color blue.

Me.SetHTML("This text is <span style=""color: red"">red</span> and <span style=""color: blue"">blue</span>.")