From Xojo Documentation

Revision as of 19:12, 23 July 2021 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As Boolean )
aDesktopLabel.Italic = newBooleanValue
BooleanValue = aDesktopLabel.Italic

New in 2021r3

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.


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.

Sample Code

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

Me.Italic = True