Finding StyledText.Paragraph Index

I have a textArea with StyledText in it which consists of about 10-20 paragraphs of varying length. I know I can do an IndexOf search for a particular string in the document but is there a way to determine which SytledText.Paragraph it is in?

Forum for Xojo Programming Language and IDE. Copyright © 2021 Xojo, Inc.