Paragraph.StartPos

From Xojo Documentation

Property (As Integer )
aParagraph.StartPos = newIntegerValue
or
IntegerValue = aParagraph.StartPos

Supported for all project types and targets.

The starting position of the paragraph. Position is zero based.

Example

Bold the first character of the paragraph:

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

// Bold the first character
Dim first As Integer = TextArea1.StyledText.Paragraph(1).StartPos
TextArea1.StyledText.Bold(first, 1) = True