DesktopTextArea.SelectionTextColor

From Xojo Documentation

Property (As Color )
aDesktopTextArea.SelectionTextColor = newColorValue
or
ColorValue = aDesktopTextArea.SelectionTextColor

New in 2021r3

Supported for all project types and targets.

Used to get and set the text color of the selected text.

Notes

When used in an unstyled DesktopTextArea, it changes the color of all the text in the DesktopTextArea.