Paragraph Class
Defines a paragraph in the document.
Declaration
export class Paragraph
Properties
index Property
Gets the paragraph’s index in the paragraphs collection.
Declaration
readonly 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
readonly interval: Interval
Property Value
Type | Description |
---|---|
Interval | An object that specifies the interval settings. |
properties Property
Provide access to the paragraph’s properties.
Declaration
properties: ParagraphProperties
Property Value
Type | Description |
---|---|
ParagraphProperties | An object that contains paragraph properties. |
Methods
addToList(list) Method
Adds the paragraph to a list at the specified level.
Declaration
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. |