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

Paragraph Class

Defines a paragraph in the document.

#Declaration

TypeScript
export class Paragraph

#Properties

#index Property

Gets the paragraph’s index in the paragraphs collection.

#Declaration

TypeScript
get index(): number

#Property Value

Type Description
number

The paragraph’s index.

#interval Property

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

#Declaration

TypeScript
get interval(): Interval

#Property Value

Type Description
Interval

An object that specifies the interval settings.

#list Property

Returns a list to which the paragraph belongs.

#Declaration

TypeScript
get list(): List | null

#Property Value

Type Description
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

TypeScript
get listLevel(): number

#Property Value

Type Description
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

TypeScript
get properties(): IParagraphProperties
set properties(properties: IParagraphProperties)

#Property Value

Type Description
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

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

#Parameters

Name Type Description
list List

The list where the paragraph should be added.

targetListLevel number

The list level.