Skip to main content

SubDocument.findParagraphs(arg) Method

Returns an array of paragraphs that match the search conditions.

Declaration

findParagraphs(
    arg: number | Interval | Interval[]
): Paragraph[]

Parameters

Name Type Description
arg number | Interval | Interval[]

A position or interval(s) where to search for paragraphs.

Returns

Type Description
Paragraph[]

An array of paragraphs.

Remarks

richEdit.document.activeSubDocument.findParagraphs(richEdit.selection.intervals);

You can use the paragraphsInfo property to get information about all paragraphs in the sub-document.

Refer to the following section for more information: Access a Structural Element.

See Also