# ParagraphStyle Object

> The ParagraphStyle class defines a formatting style for paragraphs.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Object
- **Introduced:** 28.0
- **Path:** DS Server > Reference > JavaScript API > ParagraphStyle Object
- **2718 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/paragraphstyle/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/paragraphstyle/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/paragraphstyle/llms-full.txt

---

### Description

The ParagraphStyle class defines a formatting style for paragraphs.

### Syntax

```javascript
ParagraphStyle
```

### Examples

The following example demonstrates `ParagraphStyle` in a practical document-editing workflow. The ParagraphStyle class defines a formatting style for paragraphs.

```javascript
function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function inspectParagraphStyle(paragraphStyle) {
    paragraphStyle.getFollowingStyle(
        function(result) {
            console.log("get following style result:", result);
        },
        onTxError
    );
}
```

---

## In This Section

- [Javascript: ParagraphStyle.getFollowingStyle Method](https://docs.textcontrol.com/ds-server/reference/javascript/paragraphstyle/getfollowingstyle-method/llms-full.txt): Gets the name of the style that the document automatically uses for the following paragraph after the user has pressed the ENTER key.
- [Javascript: ParagraphStyle.getParagraphFormat Method](https://docs.textcontrol.com/ds-server/reference/javascript/paragraphstyle/getparagraphformat-method/llms-full.txt): Gets the style's paragraph attributes.
- [Javascript: ParagraphStyle.listFormat Property](https://docs.textcontrol.com/ds-server/reference/javascript/paragraphstyle/listformat-property/llms-full.txt): The paragraph style's bulleted or numbered list and/or its formatting attributes.
- [Javascript: ParagraphStyle.paragraphFormat Property](https://docs.textcontrol.com/ds-server/reference/javascript/paragraphstyle/paragraphformat-property/llms-full.txt): The paragraph style's paragraph attributes.
- [Javascript: ParagraphStyle.setFollowingStyle Method](https://docs.textcontrol.com/ds-server/reference/javascript/paragraphstyle/setfollowingstyle-method/llms-full.txt): Sets the name of the style that the document automatically uses for the following paragraph after the user has pressed the ENTER key.

---

## Nearby

- **Previous:** [Javascript: ParagraphFormat.setWidowOrphanLines Method](https://docs.textcontrol.com/ds-server/reference/javascript/paragraphformat/setwidoworphanlines-method/llms-full.txt)
- **Next:** [Javascript: ParagraphStyle.getFollowingStyle Method](https://docs.textcontrol.com/ds-server/reference/javascript/paragraphstyle/getfollowingstyle-method/llms-full.txt)
