Paragraph.StartPosition

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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

New in 2019r2

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
Var first As Integer = TextArea1.StyledText.Paragraph(1).StartPosition
TextArea1.StyledText.Bold(first, 1) = True