StyledText.StyleRunCount

From Xojo Documentation

Method

StyledText.StyleRunCount() As Integer

Supported for all project types and targets.

Returns as an Integer the number of style runs in Text.

Notes

Use this in conjunction with the StyleRun and StyleRunRange methods to get information about each style run.