TextArea.StyledText
From Xojo Documentation
Property (As StyledText )
aTextArea.StyledText = newStyledTextValue
or
StyledTextValue = aTextArea.StyledText
New in 5.5
Supported for all project types and targets.
or
StyledTextValue = aTextArea.StyledText
New in 5.5
Supported for all project types and targets.
Enables you to access the properties and methods of the StyledText class for the text in the TextArea.
Notes
If the Styled property is Off then this property returns Nil.
The TextArea must have its MultiLine and Styled properties set to True. The object returned by StyledText is not a copy, so subsequent changes to it will affect the contents of the TextArea. See the example in the section "Using the StyledText Class" in the Notes for the TextArea class.