DesktopTextArea.StyledText

From Xojo Documentation

Property (As StyledText )
aDesktopTextArea.StyledText = newStyledTextValue
or
StyledTextValue = aDesktopTextArea.StyledText

New in 2021r3

Supported for all project types and targets.

Enables you to access the properties and methods of the StyledText class for the text in the DesktopTextArea.

Notes

If the Styled property is Off then this property returns Nil.

The DesktopTextArea 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 DesktopTextArea. See the example in the section "Using the StyledText Class" in the Notes for the DesktopTextArea class.