StyledText.Underline
From Xojo Documentation
Method
StyledText.Underline(Start as Integer, Length as Integer) As Boolean
Supported for all project types and targets.
Supported for all project types and targets.
Gets or sets the Underline style to the selected text in Text.
Notes
Start is the starting position in Text. The default value for Length is 1. Returns a Boolean. Use assignment syntax to set the value.
Example
Underline some text in a TextArea:
TextArea1.StyledText.Value = "Hello, World!"
TextArea1.StyledText.Underline(7, 5) = True // "World" is now underline
TextArea1.StyledText.Underline(7, 5) = True // "World" is now underline