ColorGroup.NamedColor

From Xojo Documentation

Shared Method

ColorGroup.NamedColor(name as Text) As ColorGroup

New in 2019r3

Supported on Desktop, Mobile (iOS).

Returns the specified named color.

Notes

Raises these exceptions:

Apple provides documentation for named colors for MacOS.

Additionally primaryContentBackgroundColor and secondaryContentBackgroundColor are valid names specifically for the macOS alternating table row background colors.

Sample Code

Set the label color:

Me.TextColor = ColorGroup.NamedColor("labelColor")