Label.Italic

From Xojo Documentation

Property (As Boolean )
a<See Below>.Italic = newBooleanValue
or
BooleanValue = a<See Below>.Italic

Supported for all project types and targets.

If True, applies the italic style to the control's caption and/or its text content if any.

Controls and classes implementing the Italic property

BevelButton
Checkbox
Graphics
GroupBox
Label
ListBox
PopupMenu
PushButton
RadioButton
ReportField
ReportLabel
StringShape
StyleRun
TextEdit

Notes

MacOS apps only show Italic if the font has that style built-in. Be sure to check the font using the Font Book app to see if it can be displayed in Italic.


Example

This example sets the text to italic. It is in the Open event of the control.

Me.Italic = True