Range.EndPosition

From Xojo Documentation

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

New in 2019r2

Supported for all project types and targets.

The ending position of the StyleRun.