StyledText.RemoveStyleRun

From Xojo Documentation

Method

StyledText.RemoveStyleRun(Index as Integer)

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.RemoveStyleRun(3)