Range.EndPos

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aRange.EndPos

Supported for all project types and targets.

The ending position of the StyleRun.