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