Paragraph.Length

From Xojo Documentation

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

Supported for all project types and targets.

Length (in characters) of the paragraph.

Example

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

// Bold the text
Var len As Integer = TextArea1.StyledText.Paragraph(1).Length
TextArea1.StyledText.Bold(0, len) = True