TextArea.SetTextAndStyle

From Xojo Documentation

Method

TextArea.SetTextAndStyle(Text as String, TextStyleData as String)

Supported for all project types and targets.

Places the text into the Text property of the TextArea and applies the styles to it based on the data in TextStyleData. TextStyleData is compatible with the style resource.