From Xojo Documentation

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

Property (As Color )
aDesktopBevelButton.TextColor = newColorValue
ColorValue = aDesktopBevelButton.TextColor

New in 2021r3

Supported for all project types and targets.

Gets or sets the color of the caption or the text content. The default value is black.

Sample Code

The following example sets the TextColor to red.

Me.TextColor = Color.Red

See Also

UserGuide:Dark Mode