StyledText.RemoveStyleRunAt
From Xojo Documentation
Method
Removes the StyleRun indicated by Index.
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)