Paragraph.Length

From Xojo Documentation

Revision as of 23:50, 24 July 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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