Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ParagraphCollection Class

A collection of the Paragraph objects.

#Declaration

TypeScript
export class ParagraphCollection extends Collection<Paragraph>

#Inherited Members

#Inheritance

Collection<T>
ParagraphCollection

#Methods

#create(position) Method

Creates a new Paragraph object with the specified settings and adds it to the collection.

#Declaration

TypeScript
create(
    position: number
): Paragraph

#Parameters

Name Type Description
position number

A position to insert a new paragraph.

#Returns

Type Description
Paragraph

The newly created paragraph.

#find(position) Method

Returns a list of paragraphs that traverse the specified position or interval.

#Declaration

TypeScript
find(
    position: number | IInterval
): Paragraph[]

#Parameters

Name Type Description
position number | IInterval

A document position or interval.

#Returns

Type Description
Paragraph[]

A list of paragraphs.