Back to Devexpress

ParagraphCollection Class

aspnetcore-js-devexpress-dot-richedit-cfe252ef.md

latest1.6 KB
Original Source

ParagraphCollection Class

A collection of the Paragraph objects.

Declaration

ts
export class ParagraphCollection extends Collection<Paragraph>

Inherited Members

count

getByIndex(index)

Inheritance

Collection<T> ParagraphCollection

Methods

create(position) Method

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

Declaration

ts
create(
    position: number
): Paragraph

Parameters

NameTypeDescription
positionnumber

A position to insert a new paragraph.

|

Returns

TypeDescription
Paragraph

The newly created paragraph.

|

find(position) Method

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

Declaration

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

Parameters

NameTypeDescription
positionnumberIInterval

A document position or interval.

|

Returns

TypeDescription
Paragraph[]

A list of paragraphs.

|