StyledText.ParagraphCount

From Xojo Documentation

Method

StyledText.ParagraphCount() As Integer

Supported for all project types and targets.

Returns as an Integer the number of paragraphs in Text.

Notes

Completely empty paragraphs (e.g., blank lines) do not count as paragraphs.