StyledText.StyleRunCount
From Xojo Documentation
Method
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.
Returns as an Integer the number of style runs in Text.
Use this in conjunction with the StyleRun and StyleRunRange methods to get information about each style run.