Back to Devexpress

Paragraph Class

aspnetcore-js-devexpress-dot-richedit-747dd0f7.md

latest2.2 KB
Original Source

Paragraph Class

Defines a paragraph in the document.

Declaration

ts
export class Paragraph

Properties

index Property

Gets the paragraph’s index in the paragraphs collection.

Declaration

ts
get index(): number

Property Value

TypeDescription
number

The paragraph’s index.

|

interval Property

Gets the text buffer interval occupied by the current paragraph element.

Declaration

ts
get interval(): Interval

Property Value

TypeDescription
Interval

An object that specifies the interval settings.

|

list Property

Returns a list to which the paragraph belongs.

Declaration

ts
get list(): List | null

Property Value

TypeDescription
List

The list object. null if the paragraph does not belong to a list.

|

listLevel Property

Returns a list level to which the paragraph belongs.

Declaration

ts
get listLevel(): number

Property Value

TypeDescription
number

The level (maximum 9), or -1 if the paragraph does not belong to a list.

|

properties Property

Provide access to the paragraph’s properties.

Declaration

ts
get properties(): IParagraphProperties
set properties(properties: IParagraphProperties)

Property Value

TypeDescription
IParagraphProperties

A ParagraphProperties object that implements the IParagraphProperties interface and contains paragraph properties.

|

Methods

addToList(list) Method

Adds the paragraph to a list at the specified level.

Declaration

ts
addToList(
    list: List,
    targetListLevel?: number
): void

Parameters

NameTypeDescription
listList

The list where the paragraph should be added.

| | targetListLevel | number |

The list level.

|