StyledTextRun.RemoveStyleRunAt
From Xojo Documentation
Method
StyledText.RemoveStyleRunAt(Index as Integer)
New in 2019r2
Supported for all project types and targets.
New in 2019r2
Supported for all project types and targets.
Removes the StyleRun indicated by Index. Index is zero-based.
Notes
You can get the total number of StyleRuns in Text from the StyleRunCount method.
Example
This example removes StyleRun 3.
TextArea1.StyledText.RemoveStyleRunAt(3)