StyledText.RemoveStyleRunAt

From Xojo Documentation

Method

StyledText.RemoveStyleRunAt(Index as Integer)

Supported for all project types and targets.

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)