Paragraph.EndPos

From Xojo Documentation

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

Supported for all project types and targets.

End position of the paragraph (1-based).

Example

Bold the last character of the text:

TextArea1.StyledText.Text = "Hello, World!"

// Bold the "!"
Dim endPos As Integer = TextArea1.StyledText.Paragraph(1).EndPos
TextArea1.StyledText.Bold(endPos - 1, 1) = True