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[]

Contains a position or interval(s) where to search paragraphs.

Returns

Type Description
Paragraph[]

An array of the Paragraph objects.

Remarks

You can access all paragraphs stored in the current sub-document using the paragraphsInfo property.

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