From Xojo Documentation

Revision as of 16:07, 7 October 2019 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

New in 2019r2

Supported for all project types and targets.

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


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