Skip to main content
All docs
V18.2

SubDocument.findParagraphs(position) Method

Returns an array of paragraphs whose range includes the specified position in the sub-document.

Declaration

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

Parameters

Name Type Description
position number | Interval | Interval[]

An integer value specifying the target position in the sub-document.

Returns

Type Description
Paragraph[]

An array of the Paragraph objects representing paragraphs whose range includes the specified position in the sub-document.

Remarks

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

See Also