StyledText.Italic
From Xojo Documentation
Method
StyledText.Italic(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 Italic 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
Italic some text in a TextArea:
TextArea1.StyledText.Value = "Hello, World!"
TextArea1.StyledText.Italic(7, 5) = True // "World" is now italic
TextArea1.StyledText.Italic(7, 5) = True // "World" is now italic