Paragraph.Length

From Xojo Documentation

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

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